DenseCountSparseOutput

public final class DenseCountSparseOutput

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

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

Nested Classes

class DenseCountSparseOutput.Options Optional attributes for DenseCountSparseOutput  

Public Methods

static <U extends Number, T extends Number> DenseCountSparseOutput<U>
create(Scope scope, Operand<T> values, Operand<U> weights, Boolean binaryOutput, Options... options)
Factory method to create a class wrapping a new DenseCountSparseOutput operation.
static DenseCountSparseOutput.Options
maxlength(Long maxlength)
static DenseCountSparseOutput.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

org.tensorflow.op.PrimitiveOp
final boolean
equals(Object obj)
final int
Operation
op()
Returns the underlying Operation
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Methods

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

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

Parameters
scope current scope
values Tensor containing data 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 DenseCountSparseOutput

public static DenseCountSparseOutput.Options maxlength (Long maxlength)

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

public static DenseCountSparseOutput.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.