Class SparseMatrixSoftmax

java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.linalg.sparse.SparseMatrixSoftmax
All Implemented Interfaces:
Shaped, Op, Operand<TType>

@Operator(group="linalg.sparse") public final class SparseMatrixSoftmax extends RawOp implements Operand<TType>
Calculates the softmax of a CSRSparseMatrix. Calculate the softmax of the innermost dimensions of a SparseMatrix.

Missing values are treated as -inf (i.e., logits of zero probability); and the output has the same sparsity structure as the input (though missing values in the output may now be treated as having probability zero).

  • Field Details

  • Constructor Details

    • SparseMatrixSoftmax

      public SparseMatrixSoftmax(Operation operation)
  • Method Details

    • create

      @Endpoint(describeByClass=true) public static <T extends TNumber> SparseMatrixSoftmax create(Scope scope, Operand<? extends TType> logits, Class<T> type)
      Factory method to create a class wrapping a new SparseMatrixSoftmax operation.
      Type Parameters:
      T - data type for SparseMatrixSoftmax output and operands
      Parameters:
      scope - current scope
      logits - A CSRSparseMatrix.
      type - The value of the type attribute
      Returns:
      a new instance of SparseMatrixSoftmax
    • softmax

      public Output<? extends TType> softmax()
      Gets softmax. A CSRSparseMatrix.
      Returns:
      softmax.
    • asOutput

      public Output<TType> 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<TType>
      See Also: