tf.raw_ops.RaggedCountSparseOutput

Performs sparse-output bin counting for a ragged tensor input.

Counts the number of times each value occurs in the input.

splitsA Tensor of type int64. Tensor containing the row splits of the ragged tensor to count.
valuesA Tensor. Must be one of the following types: int32, int64. Tensor containing values of the sparse tensor to count.
weightsA Tensor. Must be one of the following types: int32, int64, float32, float64. A Tensor of the same shape as indices containing per-index weight values. May also be the empty tensor if no weights are used.
binary_outputA bool. Whether to output the number of occurrences of each value or 1.
minlengthAn optional int that is >= -1. Defaults to -1. Minimum value to count. Can be set to -1 for no minimum.
maxlengthAn optional int that is >= -1. Defaults to -1. Maximum value to count. Can be set to -1 for no maximum.
nameA name for the operation (optional).

A tuple of Tensor objects (output_indices, output_values, output_dense_shape).
output_indicesA Tensor of type int64.
output_valuesA Tensor. Has the same type as weights.
output_dense_shapeA Tensor of type int64.