TopKWithUnique

public final class TopKWithUnique

Returns the TopK values in the array in sorted order. This is a combination

of MakeUnique and TopKUnique. The returned top-K will have its lower bits replaced by iota, thus it will be close to the original value but not exactly the same. The running time is proportional to the product of K and the input size. NaNs are never returned. Subnormal numbers are flushed to zero.

Constants

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

Public Methods

static TopKWithUnique
create(Scope scope, Operand<TFloat32> input, Long k)
Factory method to create a class wrapping a new TopKWithUnique operation.
Output<TFloat32>
topk()
Output<TInt32>

Inherited Methods

org.tensorflow.op.RawOp
final boolean
equals(Object obj)
final int
Operation
op()
Return this unit of computation as a single 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()
org.tensorflow.op.Op
abstract ExecutionEnvironment
env()
Return the execution environment this op was created in.
abstract Operation
op()
Return this unit of computation as a single Operation.

Constants

public static final String OP_NAME

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

Constant Value: "TopKWithUnique"

Public Methods

public static TopKWithUnique create (Scope scope, Operand<TFloat32> input, Long k)

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

Parameters
scope current scope
Returns
  • a new instance of TopKWithUnique

public Output<TFloat32> topk ()

public Output<TInt32> topkIndices ()