| Package | Description |
|---|---|
| org.bytedeco.tvm |
| Modifier and Type | Method and Description |
|---|---|
NDArray |
TVMPODValue_.asNDArray() |
NDArray |
NDArray.CopyTo(DLContext ctx)
\brief Copy the data to another context.
|
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.
|
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.
|
static NDArray |
NDArray.FromDLPack(DLManagedTensor tensor)
\brief Create a NDArray backed by a dlpack tensor.
|
NDArray |
NDArray.getPointer(long i) |
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 © 2021. All rights reserved.