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.
Public Methods
static TopKWithUnique | |
Output<Float> |
topk()
|
Output<Integer> |
Inherited Methods
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 TopKWithUnique create (Scope scope, Operand<Float> input, Long k)
Factory method to create a class wrapping a new TopKWithUnique operation.
Parameters
scope | current scope |
---|
Returns
- a new instance of TopKWithUnique