Class Softsign<T extends TNumber>

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

@Operator(group="nn") public final class Softsign<T extends TNumber> extends RawOp implements Operand<T>
Computes softsign: features / (abs(features) + 1).
  • Field Details

  • Constructor Details

    • Softsign

      public Softsign(Operation operation)
  • Method Details

    • create

      @Endpoint(describeByClass=true) public static <T extends TNumber> Softsign<T> create(Scope scope, Operand<T> features)
      Factory method to create a class wrapping a new Softsign operation.
      Type Parameters:
      T - data type for Softsign output and operands
      Parameters:
      scope - current scope
      features - The features value
      Returns:
      a new instance of Softsign
    • activations

      public Output<T> activations()
      Gets activations.
      Returns:
      activations.
    • 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: