Skip to main content
Version: 0.10.0-legacy

Interface: TensorPtr

Defined in: types/common.ts:130

Represents a pointer to a tensor, including its data buffer, size dimensions, and scalar type.

Properties​

dataPtr​

dataPtr: TensorBuffer

Defined in: types/common.ts:131

The data buffer of the tensor.


scalarType​

scalarType: ScalarType

Defined in: types/common.ts:133

The scalar type of the tensor, as defined in the ScalarType enum.


sizes​

sizes: number[]

Defined in: types/common.ts:132

An array representing the size of each dimension of the tensor.