tensorflow::ops::NthElement
#include <nn_ops.h> Son boyut için n . dereceden istatistiğin değerlerini bulur.
Özet
Giriş bir vektör (1. dereceden) ise, vektördeki n. en küçük değere sahip elemanı bulur ve değerlerini skalar tensör olarak çıktı verir.
Matrisler için (veya daha yüksek dereceli girdiler için), her satırdaki (veya son boyuttaki vektördeki) n. en küçük değeri veren girdileri hesaplar. Dolayısıyla,
values.shape = input.shape[:-1]
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- Giriş: Son boyutu en az
n+1olan 1 boyutlu veya daha yüksek boyutlu bir veri seti. - n: 0-Boyut. Son boyut boyunca (matrisler için her satır boyunca) seçilecek sıralı vektörün konumu. n'nin geçerli aralığı
[0, input.shape[:-1])'dir.
İsteğe bağlı özellikler (bkz. Attrs ):
- reverse: True olarak ayarlandığında, vektördeki n. en büyük değeri bulur ve tersi durumda da en küçük değeri bulur.
İadeler:
-
Output: Her bir son boyutlu dilim boyuncandereceden istatistik.
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 | |
Herkese açık statik fonksiyonlar | |
|---|---|
Reverse (bool x) | |
Yapılar | |
|---|---|
| tensorflow::ops::NthElement::Attrs | NthElement için isteğe bağlı öznitelik ayarlayıcıları. |
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
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Herkese açık statik fonksiyonlar
Tersi
Attrs Reverse( bool x )