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

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

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

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

tensor4D([
 [
   [
     [1, 2, 3],
     [4, 5, 6],
   ],
   [
     [1, 2, 3],
     [4, 5, 6],
   ],
 ],
 [
   [
     [1, 2, 3],
     [4, 5, 6],
   ],
   [
     [1, 2, 3],
     [4, 5, 6],
   ]
 ],
]);