import { tensor } from "https://deno.land/x/netsaur@0.2.12/src/core/tensor/tensor.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
import { tensor } from "https://deno.land/x/netsaur@0.2.12/src/core/tensor/tensor.ts";
Create an nth rank tensor from the given nthD array and shape.
tensor([1, 2, 3, 4], [2, 2]);