Class: NDArray

tvm.NDArray()

new NDArray()

TVM n-dimensional array. Use tvm.TVMRuntime.empty to create an instance.
Source:

Methods

asArray() → {TypedArray}

Return Array data content as javascript typed array.
Source:
Returns:
The created array.
Type
TypedArray

asRawBytes() → {Uint8Array}

Return a copied Uint8Array of the raw bytes in the NDArray.
Source:
Returns:
The created array.
Type
Uint8Array

copyFrom(data)

Copy data from another NDArray or javascript array. The number of elements must match.
Parameters:
Name Type Description
data Array The source data array.
Source:

copyFromRawBytes(data)

Copy data from raw bytes.
Parameters:
Name Type Description
data Uint8Array Uint8Array of bytes.
Source:

release()

Finalizer: resources from the object.
Source: