(
args: {inputs: ProdInputs, backend: WebGPUBackend, attrs: ProdAttrs})
| 21 | import {reduce} from '../kernel_utils/reduce'; |
| 22 | |
| 23 | export 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 | |
| 33 | export const prodConfig: KernelConfig = { |
| 34 | kernelName: Prod, |
nothing calls this directly
no test coverage detected
searching dependent graphs…