Skip to content

tensor

tensor(data, shape): Tensor

Defined in: tensor.js:54

Build a tensor from raw storage, without copying.

Parameters

data

Float64Array<ArrayBufferLike> | number[]

shape

number[]

Returns

Tensor