Readonly
dataGet the buffer data of the tensor.
Readonly
dimsGet the dimensions of the tensor.
Readonly
sizeGet the number of elements in the tensor.
Readonly
typeGet the data type of the tensor.
Create a new tensor with the same data buffer and specified dims.
New dimensions. Size should match the old one.
creates an ImageData instance from tensor
An ImageData instance which can be used to draw on canvas
Optional
options: TensorToImageDataOptionsGenerated using TypeDoc
Represent multi-dimensional arrays to feed to or fetch from model inferencing.