Interface CustomOp.BinaryGradient

Enclosing class:
CustomOp
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CustomOp.BinaryGradient
The gradients of an element-wise binary operator y = f(a, b): [dL/da, dL/db] from a, b, y and dL/dy.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(Tensor a, Tensor b, Tensor y, Tensor gradY)
    [dL/da, dL/db], from the inputs a and b, the output y and dL/dy.
  • Method Details