SparseCountSparseOutput

public final class SparseCountSparseOutput

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

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

Nested Classes

class SparseCountSparseOutput.Options Optional attributes for SparseCountSparseOutput  

Public Methods

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

Inherited Methods

Public Methods

public static SparseCountSparseOutput<U> create (Scope scope, Operand<Long> indices, Operand<T> values, Operand<Long> denseShape, Operand<U> weights, Boolean binaryOutput, Options... options)

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

Parameters
scope current scope
indices Tensor containing the indices of the sparse tensor to count.
values Tensor containing values of the sparse tensor to count.
denseShape Tensor containing the dense shape 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 SparseCountSparseOutput

public static SparseCountSparseOutput.Options maxlength (Long maxlength)

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

public static SparseCountSparseOutput.Options minlength (Long minlength)

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

public Output<Long> outputDenseShape ()

Shape tensor for the resulting sparse tensor object.

public Output<Long> outputIndices ()

Indices tensor for the resulting sparse tensor object.

public Output<U> outputValues ()

Values tensor for the resulting sparse tensor object.