Interface CustomOp.Backward

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.Backward
Gradients with respect to each input (null where none is needed), given the gradient of the first output.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(Node node, Tensor gradOut)
    The gradient of each input of node (null where none is needed), from the gradient gradOut of its first output.
  • Method Details

    • apply

      Tensor[] apply(Node node, Tensor gradOut)
      The gradient of each input of node (null where none is needed), from the gradient gradOut of its first output.