MCPcopy Index your code
hub / github.com/tensorflow/tfjs / prod

Function prod

tfjs-backend-webgpu/src/kernels/Prod.ts:23–31  ·  view source on GitHub ↗
(
    args: {inputs: ProdInputs, backend: WebGPUBackend, attrs: ProdAttrs})

Source from the content-addressed store, hash-verified

21import {reduce} from '../kernel_utils/reduce';
22
23export function prod(
24 args: {inputs: ProdInputs, backend: WebGPUBackend, attrs: ProdAttrs}):
25 TensorInfo {
26 const {inputs, backend, attrs} = args;
27 const {x} = inputs;
28 const {axis, keepDims} = attrs;
29
30 return reduce(x, axis, keepDims, 'prod', backend);
31}
32
33export const prodConfig: KernelConfig = {
34 kernelName: Prod,

Callers

nothing calls this directly

Calls 1

reduceFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…