| Package | Description |
|---|---|
| org.bytedeco.tvm | |
| org.bytedeco.tvm.global |
| Modifier and Type | Method and Description |
|---|---|
DLDataType |
TVMRetValue.asDLDataType() |
DLDataType |
TVMArgValue.asDLDataType() |
DLDataType |
DataType.asDLDataType()
\brief Converter to DLDataType
|
DLDataType |
DLDataType.bits(byte setter) |
DLDataType |
DLDataType.code(byte setter) |
DLDataType |
DLTensor.dtype()
\brief The data type of the pointer
|
DLDataType |
DLDataType.getPointer(long i) |
DLDataType |
DLDataType.lanes(short setter) |
DLDataType |
DLDataType.position(long position) |
DLDataType |
TVMValue.v_type() |
| Modifier and Type | Method and Description |
|---|---|
void |
TVMArgsSetter.apply(long i,
DLDataType value) |
NDArray |
NDArray.CreateView(long[] shape,
DLDataType dtype) |
NDArray |
NDArray.CreateView(LongBuffer shape,
DLDataType dtype) |
NDArray |
NDArray.CreateView(LongPointer shape,
DLDataType dtype)
\brief Create a NDArray that shares the data memory with the current one.
|
DLTensor |
DLTensor.dtype(DLDataType setter) |
static NDArray |
NDArray.Empty(long[] shape,
DLDataType dtype,
DLContext ctx) |
static NDArray |
NDArray.Empty(LongBuffer shape,
DLDataType dtype,
DLContext ctx) |
static NDArray |
NDArray.Empty(LongPointer shape,
DLDataType dtype,
DLContext ctx)
\brief Create an empty NDArray.
|
TVMRetValue |
TVMRetValue.put(DLDataType t) |
static boolean |
Handler.Read(Stream strm,
DLDataType dtype) |
TVMValue |
TVMValue.v_type(DLDataType setter) |
static void |
Handler.Write(Stream strm,
DLDataType dtype) |
| Constructor and Description |
|---|
Container(Pointer data,
long[] shape,
DLDataType dtype,
DLContext ctx) |
Container(Pointer data,
LongBuffer shape,
DLDataType dtype,
DLContext ctx) |
Container(Pointer data,
LongPointer shape,
DLDataType dtype,
DLContext ctx) |
DataType(DLDataType dtype)
\brief Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static DLDataType |
tvm_runtime.String2DLDataType(BytePointer s)
\brief convert a string to TVM type.
|
static DLDataType |
tvm_runtime.String2DLDataType(String s) |
| Modifier and Type | Method and Description |
|---|---|
static BytePointer |
tvm_runtime.DLDataType2String(DLDataType t)
\brief convert a TVM type to string.
|
static Pointer |
tvm_runtime.shiftLeft(Pointer os,
DLDataType t) |
static int |
tvm_runtime.TVMDeviceAllocDataSpace(DLContext ctx,
long nbytes,
long alignment,
DLDataType type_hint,
Pointer out_data) |
static int |
tvm_runtime.TVMDeviceAllocDataSpace(DLContext ctx,
long nbytes,
long alignment,
DLDataType type_hint,
PointerPointer out_data)
\brief Allocate a data space on device.
|
static int |
tvm_runtime.TVMDeviceCopyDataFromTo(Pointer from,
long from_offset,
Pointer to,
long to_offset,
long num_bytes,
DLContext ctx_from,
DLContext ctx_to,
DLDataType type_hint,
TVMStreamHandle stream)
\brief Copy data from one place to another.
|
static boolean |
tvm_runtime.TypeEqual(DLDataType lhs,
DLDataType rhs)
\brief Check whether two types are equal .
|
static boolean |
tvm_runtime.TypeMatch(DLDataType t,
int code,
int bits) |
static boolean |
tvm_runtime.TypeMatch(DLDataType t,
int code,
int bits,
int lanes)
\brief Check whether type matches the given spec.
|
Copyright © 2021. All rights reserved.