tensorflow :: ops :: NthElement
#include <nn_ops.h>
Buluntular değerleri n
son boyut için oyunu bırakanların sıra istatistiğinin.
Özet
Giriş bir vektörse (sıra-1), vektördeki n'inci en küçük değer olan girişleri bulur ve değerlerini skaler tensör olarak çıkarır.
Matrisler için (daha yüksek sıralama girdisi), her satırdaki n'inci en küçük değer olan girişleri hesaplar (son boyut boyunca vektör). Böylece,
values.shape = input.shape[:-1]
Argümanlar:
- kapsam: Bir Scope nesnesi
- girdi: 1-D veya daha yüksek, son boyut en az
n+1
. - n: 0-D. Son boyut boyunca (matrisler için her satır boyunca) seçmek için sıralanmış vektörün konumu. Geçerli n aralığı
[0, input.shape[:-1])
İsteğe bağlı özellikler (bkz. Attrs
):
- ters: True olarak ayarlandığında, vektördeki n'inci en büyük değeri bulun ve bunun tersi de geçerlidir.
İadeler:
-
Output
:n
her geçen boyutlu dilim boyunca -th sıra istatistiği.
Yapıcılar ve Yıkıcılar | |
---|---|
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) |
Genel özellikler | |
---|---|
operation | |
values |
Kamusal işlevler | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Genel statik işlevler | |
---|---|
Reverse (bool x) |
Yapılar | |
---|---|
tensorflow :: ops :: NthElement :: Attrs | NthElement için isteğe bağlı öznitelik belirleyiciler. |
Genel özellikler
operasyon
Operation operation
değerler
::tensorflow::Output values
Kamusal işlevler
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 )
düğüm
::tensorflow::Node * node() const
operator :: tensorflow :: Girdi
operator::tensorflow::Input() const
operator :: tensorflow :: Çıktı
operator::tensorflow::Output() const
Genel statik işlevler
Tersine çevirmek
Attrs Reverse( bool x )