Package org.apache.tvm
Class NDArrayBase
java.lang.Object
org.apache.tvm.TVMValue
org.apache.tvm.NDArrayBase
- Direct Known Subclasses:
NDArray
Base class of NDArray. To handle callback array.
Only deep-copy supported.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final long
protected long
final boolean
-
Method Summary
Modifier and TypeMethodDescriptioncopyTo
(NDArrayBase target) Copy array to target.protected void
finalize()
void
release()
Release the NDArray.
-
Field Details
-
handle
protected long handle -
isView
public final boolean isView -
dltensorHandle
protected final long dltensorHandle
-
-
Method Details
-
asNDArray
-
release
public void release()Release the NDArray. -
finalize
-
copyTo
Copy array to target.- Parameters:
target
- The target array to be copied, must have same shape as this array.- Returns:
- target
-