import { tensor } from "https://deno.land/x/netsaur@0.4.2/packages/core/mod.ts";
Create an nth rank tensor from the given nthD array and shape.
tensor([1, 2, 3, 4], [2, 2]);
Type Parameters
R extends Rank
Parameters
tensorLike: TensorLike<R>
import { tensor } from "https://deno.land/x/netsaur@0.4.2/packages/core/mod.ts";
Create an nth rank tensor from the given nthD array and shape.
tensor([1, 2, 3, 4], [2, 2]);