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

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

Powerful machine learning, accelerated by WebGPU
Go to Latest
function tensor1D
import { tensor1D } from "https://deno.land/x/netsaur@0.2.12/src/core/tensor/tensor.ts";

Create a 1D tensor from the given 1D array.

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