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

Function eluGrad

tfjs-backend-webgpu/src/kernels/EluGrad.ts:25–32  ·  view source on GitHub ↗
(args: {inputs: EluGradInputs, backend: WebGPUBackend})

Source from the content-addressed store, hash-verified

23
24export 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
34export const eluGradConfig: KernelConfig = {
35 kernelName: EluGrad,

Callers

nothing calls this directly

Calls 1

runWebGPUProgramMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…