Class Sigmoid<T extends TType>

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

@Operator(group="math") public final class Sigmoid<T extends TType> extends RawOp implements Operand<T>
Computes sigmoid of x element-wise. Specifically, y = 1 / (1 + exp(-x)).
  • Field Details

  • Constructor Details

    • Sigmoid

      public Sigmoid(Operation operation)
  • Method Details

    • create

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

      public Output<T> y()
      Gets y.
      Returns:
      y.
    • 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 TType>
      See Also: