#include <nn_ops.h>
Finds values of the 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:
n+1
.[0, input.shape[:-1])
Optional attributes (see Attrs
):
Returns:
Output
: The n
-th order statistic along each last dimensional slice. Constructors and Destructors | |
---|---|
NthElement(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input n) | |
NthElement(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input n, const NthElement::Attrs & attrs) |
Public attributes | |
---|---|
values |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
Reverse(bool x) |
Structs | |
---|---|
tensorflow::ops::NthElement::Attrs | Optional attribute setters for NthElement. |
::tensorflow::Output values
NthElement( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input n )
NthElement( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input n, const NthElement::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs Reverse( bool x )
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/nth-element.html