MCPcopy Create free account
hub / github.com/tensorflow/tfjs / arrayProduct

Function arrayProduct

tfjs-backend-webgpu/src/webgpu_util.ts:19–25  ·  view source on GitHub ↗
(arr: number[])

Source from the content-addressed store, hash-verified

17import {DataType, TensorInfo, util} from '@tensorflow/tfjs-core';
18
19const arrayProduct = (arr: number[]) => {
20 let product = 1;
21 for (let i = 0; i < arr.length; i++) {
22 product *= arr[i];
23 }
24 return product;
25};
26
27export function tilesFitEvenlyIntoShape(
28 tileSize: number[], shape: number[]): boolean {

Callers 3

computeDispatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…