Interface TypedTensor<T>

Represent multi-dimensional arrays to feed to or fetch from model inferencing.

Type Parameters

Hierarchy

  • TypedTensorBase<T>
  • TypedTensorUtils<T>
    • TypedTensor

Properties

Methods

Properties

data: DataTypeMap[T]

Get the buffer data of the tensor.

dims: readonly number[]

Get the dimensions of the tensor.

size: number

Get the number of elements in the tensor.

type: T

Get the data type of the tensor.

Methods

  • Create a new tensor with the same data buffer and specified dims.

    Parameters

    • dims: readonly number[]

      New dimensions. Size should match the old one.

    Returns TypedTensor<T>

Generated using TypeDoc