A Tensor. The standard input and output type.
Defined by a TypedArray and a shape.
Data is stored in standard order i. e. new Tensor(new Float32Array([1, 2, 3, 4]), [2, 2]) is comparable to [[1, 2], [3, 4]].
new Tensor(new Float32Array([1, 2, 3, 4]), [2, 2])
[[1, 2], [3, 4]]
Generated using TypeDoc
A Tensor. The standard input and output type.
Defined by a TypedArray and a shape.
Data is stored in standard order i. e.
new Tensor(new Float32Array([1, 2, 3, 4]), [2, 2])
is comparable to[[1, 2], [3, 4]]
.