Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/netsaur/mod.ts>Tensor.from

Powerful machine learning, accelerated by WebGPU
Go to Latest
method Tensor.from
Re-export
import { Tensor } from "https://deno.land/x/netsaur@0.2.0/mod.ts";

Creates a tensor from an array of values.

Type Parameters

R extends Rank
B extends BackendType

Parameters

values: Float32Array
shape: Shape[R]