Skip to main content
Module

x/netsaur/mod.ts>tensor

Powerful machine learning, accelerated by WebGPU
Latest
function tensor
import { tensor } from "https://deno.land/x/netsaur@0.3.1/mod.ts";

Create an nth rank tensor from the given nthD array and shape.

tensor([1, 2, 3, 4], [2, 2]);

Parameters

values: Float32Array
shape: Shape[R]