@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.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 |
tensorflow.NthElement.Attrs
Optional attribute setters for NthElement
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
NthElement(Pointer p)
Pointer cast constructor.
|
NthElement(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.Input n) |
NthElement(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.Input n,
tensorflow.NthElement.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.NthElement |
operation(tensorflow.Operation operation) |
static tensorflow.NthElement.Attrs |
Reverse(boolean x) |
tensorflow.Output |
values() |
tensorflow.NthElement |
values(tensorflow.Output values) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic NthElement(Pointer p)
Pointer.Pointer(Pointer).public NthElement(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @ByVal tensorflow.Input n)
public NthElement(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @ByVal tensorflow.Input n, @Const @ByRef tensorflow.NthElement.Attrs attrs)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByVal public static tensorflow.NthElement.Attrs Reverse(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.NthElement operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output values()
public tensorflow.NthElement values(tensorflow.Output values)
Copyright © 2019. All rights reserved.