Tensorflow :: ops :: NthElement
#include <nn_ops.h>
Findet Werte der Statistik n
ter Ordnung für die letzte Dimension.
Zusammenfassung
Wenn die Eingabe ein Vektor ist (Rang 1), werden die Einträge gefunden, die der n-kleinste Wert im Vektor sind, und ihre Werte als Skalartensor ausgegeben.
Berechnet für Matrizen (bzw. Eingabe mit höherem Rang) die Einträge, die der n-kleinste Wert in jeder Zeile sind (bzw. Vektor entlang der letzten Dimension). Also
values.shape = input.shape[:-1]
Argumente:
- scope: Ein Scope- Objekt
- Eingabe: 1-D oder höher mit letzter Dimension mindestens
n+1
. - n: 0-D. Position des sortierten Vektors, der entlang der letzten Dimension ausgewählt werden soll (entlang jeder Zeile für Matrizen). Gültiger Bereich von n ist
[0, input.shape[:-1])
Optionale Attribute (siehe Attrs
):
- umgekehrt: Wenn True festgelegt ist, suchen Sie den n-ten größten Wert im Vektor und umgekehrt.
Kehrt zurück:
-
Output
: Die Statistikn
ter Ordnung entlang jeder letzten dimensionalen Schicht.
Konstruktoren und Destruktoren | |
---|---|
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) |
Öffentliche Attribute | |
---|---|
operation | |
values |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
Reverse (bool x) |
Strukturen | |
---|---|
tensorflow :: ops :: NthElement :: Attrs | Optionale Attributsetzer für NthElement . |
Öffentliche Attribute
Operation
Operation operation
Werte
::tensorflow::Output values
Öffentliche Funktionen
NthElement
NthElement( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input n )
NthElement
NthElement( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input n, const NthElement::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
Umkehren
Attrs Reverse( bool x )