Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netsaur/mod.ts>tensor

Powerful machine learning, accelerated by WebGPU
Go to Latest
function tensor
import { tensor } from "https://deno.land/x/netsaur@0.2.12/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]