Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Type parameters

Hierarchy

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

Index

Properties

Methods

Properties

Readonly data

data: DataTypeMap[T]

Get the buffer data of the tensor.

Readonly dims

dims: readonly number[]

Get the dimensions of the tensor.

Readonly size

size: number

Get the number of elements in the tensor.

Readonly type

type: T

Get the data type of the tensor.

Methods

reshape

  • 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