(args: {inputs: EluGradInputs, backend: WebGPUBackend})
| 23 | |
| 24 | export const eluGrad = |
| 25 | (args: {inputs: EluGradInputs, backend: WebGPUBackend}): TensorInfo => { |
| 26 | const {inputs, backend} = args; |
| 27 | const {dy, y} = inputs; |
| 28 | |
| 29 | const program = |
| 30 | new BinaryOpProgram(BinaryOpType.ELU_DER, dy.shape, y.shape); |
| 31 | return backend.runWebGPUProgram(program, [dy, y], dy.dtype); |
| 32 | }; |
| 33 | |
| 34 | export const eluGradConfig: KernelConfig = { |
| 35 | kernelName: EluGrad, |
nothing calls this directly
no test coverage detected
searching dependent graphs…