Class EluGrad<T extends TNumber>

java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.nn.EluGrad<T>
All Implemented Interfaces:
Shaped, Op, Operand<T>

@Operator(group="nn") public final class EluGrad<T extends TNumber> extends RawOp implements Operand<T>
Computes gradients for the exponential linear (Elu) operation.
  • Field Details

  • Constructor Details

    • EluGrad

      public EluGrad(Operation operation)
  • Method Details

    • create

      @Endpoint(describeByClass=true) public static <T extends TNumber> EluGrad<T> create(Scope scope, Operand<T> gradients, Operand<T> outputs)
      Factory method to create a class wrapping a new EluGrad operation.
      Type Parameters:
      T - data type for EluGrad output and operands
      Parameters:
      scope - current scope
      gradients - The backpropagated gradients to the corresponding Elu operation.
      outputs - The outputs of the corresponding Elu operation.
      Returns:
      a new instance of EluGrad
    • backprops

      public Output<T> backprops()
      Gets backprops. The gradients: gradients * (outputs + 1) if outputs < 0, gradients otherwise.
      Returns:
      backprops.
    • asOutput

      public Output<T> asOutput()
      Description copied from interface: Operand
      Returns the symbolic handle of the tensor.

      Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

      Specified by:
      asOutput in interface Operand<T extends TNumber>
      See Also: