Interface CustomOp.UnaryGradient

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.UnaryGradient
The gradient of an element-wise unary operator y = f(x): dL/dx from x, y and dL/dy.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(Tensor x, Tensor y, Tensor gradY)
    dL/dx, from the input x, the output y and dL/dy.
  • Method Details