| Package | Description |
|---|---|
| org.bytedeco.tvm |
| Modifier and Type | Method and Description |
|---|---|
NDArray |
TVMPODValue_.asNDArray() |
NDArray |
NDArray.CopyTo(DLDevice dev) |
NDArray |
NDArray.CopyTo(DLDevice dev,
TVMStringOptional mem_scope)
\brief Copy the data to another device.
|
NDArray |
NDArray.CreateView(ShapeTuple shape,
DLDataType dtype) |
NDArray |
NDArray.CreateView(ShapeTuple shape,
DLDataType dtype,
long relative_byte_offset)
\brief Create a NDArray that shares the data memory with the current one.
|
static NDArray |
NDArray.Empty(ShapeTuple shape,
DLDataType dtype,
DLDevice dev) |
static NDArray |
NDArray.Empty(ShapeTuple shape,
DLDataType dtype,
DLDevice dev,
TVMStringOptional mem_scope)
\brief Create an empty NDArray.
|
static NDArray |
NDArray.FromDLPack(DLManagedTensor tensor)
\brief Create a NDArray backed by a dlpack tensor.
|
static NDArray |
NDArray.FromExternalDLTensor(DLTensor dl_tensor)
\brief Create a NDArray backed by an external DLTensor without memory copying.
|
NDArray |
NDArray.getPointer(long i) |
static NDArray |
NDArray.NewFromDLTensor(DLTensor dl_tensor,
DLDevice dev)
\brief Create new NDArray, data is copied from DLTensor.
|
NDArray |
NDArray.position(long position) |
| Modifier and Type | Method and Description |
|---|---|
void |
NDArray.CopyFrom(NDArray other) |
void |
NDArray.CopyTo(NDArray other) |
TVMRetValue |
TVMRetValue.put(NDArray other) |
Copyright © 2024. All rights reserved.