Skip to main content
Version: Next

Interface: TensorPtr

Defined in: packages/react-native-executorch/src/types/common.ts:134

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

Properties

dataPtr

dataPtr: TensorBuffer

Defined in: packages/react-native-executorch/src/types/common.ts:135

The data buffer of the tensor.


scalarType

scalarType: ScalarType

Defined in: packages/react-native-executorch/src/types/common.ts:137

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


sizes

sizes: number[]

Defined in: packages/react-native-executorch/src/types/common.ts:136

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