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

x/netsaur/packages/core/mod.ts>tensor

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
function tensor
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]);

Parameters

tensorLike: TensorLike<R>

Parameters

values: Float32Array
shape: Shape<R>