class TensorRe-exportimport { Tensor } from "https://deno.land/x/netsaur@0.4.2/packages/core/mod.ts"; A generic N-dimensional tensor. ConstructorsnewTensor(data: Float32Array, shape: Shape<R>)Type ParametersR extends RankPropertiesdata: Float32Arrayshape: Shape<R>MethodstoJSON(): { data: number[]; shape: Shape<R>; }Serialise a tensor into JSON. tensor([1, 2, 3, 4], [2, 2]).toJSON(); Static Methodszeroes<R extends Rank>(shape: Shape<R>): Tensor<R>Creates an empty tensor. Tensor.zeros([2, 2]);