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

x/netsaur/src/core/tensor/tensor.ts>tensor

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