@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class NthElement extends Pointer
n
-th order statistic for the last dimension.
If the input is a vector (rank-1), finds the entries which is the nth-smallest
value in the vector and outputs their values as scalar tensor.
For matrices (resp. higher rank input), computes the entries which is the
nth-smallest value in each row (resp. vector along the last dimension). Thus,
values.shape = input.shape[:-1]
Arguments:
* scope: A Scope object
* input: 1-D or higher with last dimension at least n+1
.
* n: 0-D. Position of sorted vector to select along the last dimension (along
each row for matrices). Valid range of n is [0, input.shape[:-1])
Optional attributes (see Attrs
):
* reverse: When set to True, find the nth-largest value in the vector and vice
versa.
Returns:
* Output
: The n
-th order statistic along each last dimensional slice.Modifier and Type | Class and Description |
---|---|
static class |
NthElement.Attrs
Optional attribute setters for NthElement
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
NthElement(Pointer p)
Pointer cast constructor.
|
NthElement(Scope scope,
Input input,
Input n) |
NthElement(Scope scope,
Input input,
Input n,
NthElement.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
NthElement |
operation(Operation setter) |
static NthElement.Attrs |
Reverse(boolean x) |
Output |
values() |
NthElement |
values(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public NthElement(Pointer p)
Pointer(Pointer)
.public Node node()
@ByVal public static NthElement.Attrs Reverse(@Cast(value="bool") boolean x)
public NthElement operation(Operation setter)
public NthElement values(Output setter)
Copyright © 2022. All rights reserved.