Class SparseMatrixSoftmax
java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.linalg.sparse.SparseMatrixSoftmax
@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).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of this op, as known by TensorFlow core engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasOutput()Returns the symbolic handle of the tensor.static <T extends TNumber>
SparseMatrixSoftmaxFactory method to create a class wrapping a new SparseMatrixSoftmax operation.softmax()Gets softmax.
-
Field Details
-
OP_NAME
The name of this op, as known by TensorFlow core engine- See Also:
-
-
Constructor Details
-
SparseMatrixSoftmax
-
-
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 forSparseMatrixSoftmaxoutput and operands- Parameters:
scope- current scopelogits- A CSRSparseMatrix.type- The value of the type attribute- Returns:
- a new instance of SparseMatrixSoftmax
-
softmax
-
asOutput
Description copied from interface:OperandReturns 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.
-