RaggedCountSparseOutput

public final class RaggedCountSparseOutput

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

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

Nested Classes

class RaggedCountSparseOutput.Options Optional attributes for RaggedCountSparseOutput

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

static <U extends TNumber > RaggedCountSparseOutput <U>
create ( Scope scope, Operand < TInt64 > splits, Operand <? extends TNumber > values, Operand <U> weights, Boolean binaryOutput, Options... options)
Factory method to create a class wrapping a new RaggedCountSparseOutput operation.
static RaggedCountSparseOutput.Options
maxlength (Long maxlength)
static RaggedCountSparseOutput.Options
minlength (Long minlength)
Output < TInt64 >
outputDenseShape ()
Shape tensor for the resulting sparse tensor object.
Output < TInt64 >
outputIndices ()
Indices tensor for the resulting sparse tensor object.
Output <U>
outputValues ()
Values tensor for the resulting sparse tensor object.

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "RaggedCountSparseOutput"

Public Methods

public static RaggedCountSparseOutput <U> create ( Scope scope, Operand < TInt64 > splits, Operand <? extends TNumber > values, Operand <U> weights, Boolean binaryOutput, Options... options)

Factory method to create a class wrapping a new RaggedCountSparseOutput operation.

Parameters
scope current scope
splits Tensor containing the row splits of the ragged tensor to count.
values Tensor containing values of the sparse tensor to count.
weights A Tensor of the same shape as indices containing per-index weight values. May also be the empty tensor if no weights are used.
binaryOutput Whether to output the number of occurrences of each value or 1.
options carries optional attributes values
Returns
  • a new instance of RaggedCountSparseOutput

public static RaggedCountSparseOutput.Options maxlength (Long maxlength)

Parameters
maxlength Maximum value to count. Can be set to -1 for no maximum.

public static RaggedCountSparseOutput.Options minlength (Long minlength)

Parameters
minlength Minimum value to count. Can be set to -1 for no minimum.

public Output < TInt64 > outputDenseShape ()

Shape tensor for the resulting sparse tensor object. END } attr { name: "T" description: <

public Output < TInt64 > outputIndices ()

Indices tensor for the resulting sparse tensor object.

public Output <U> outputValues ()

Values tensor for the resulting sparse tensor object.