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

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

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

iterate over a 2D array.

Parameters

mat: Tensor<Rank> | Shape[Rank]
callback: (i: number, j: number) => void