tensorflow :: ops :: Çok terimli
#include <random_ops.h>
Çok terimli bir dağılımdan örnekler çizer.
Özet
Argümanlar:
- kapsam: Bir Scope nesnesi
- logits:
[batch_size, num_classes]
şeklinde 2-B Tensör . Her dilim[i, :]
,:[i, :]
, tüm sınıflar için normalize edilmemiş günlük olasılıklarını temsil eder. - num_samples: 0-D. Her satır dilimi için çizilecek bağımsız örneklerin sayısı.
İsteğe bağlı özellikler (bkz. Attrs
):
- tohum: Tohum veya tohum2 sıfırdan farklı olacak şekilde ayarlanmışsa, dahili rastgele sayı üreteci verilen tohum tarafından tohumlanır. Aksi takdirde rastgele bir tohum kullanılır.
- seed2: Tohum çarpışmasını önlemek için ikinci bir tohum.
İadeler:
-
Output
:[batch_size, num_samples]
şeklinde 2-D Tensör . Her dilim[i, :]
[0, num_classes)
[i, :]
,[0, num_classes)
aralığına sahip çizilmiş sınıf etiketlerini içerir.
Yapıcılar ve Yıkıcılar | |
---|---|
Multinomial (const :: tensorflow::Scope & scope, :: tensorflow::Input logits, :: tensorflow::Input num_samples) | |
Multinomial (const :: tensorflow::Scope & scope, :: tensorflow::Input logits, :: tensorflow::Input num_samples, const Multinomial::Attrs & attrs) |
Genel özellikler | |
---|---|
operation | |
output |
Kamusal işlevler | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Genel statik işlevler | |
---|---|
OutputDtype (DataType x) | |
Seed (int64 x) | |
Seed2 (int64 x) |
Yapılar | |
---|---|
tensorflow :: ops :: Multinomial :: Attrs | Multinomial için isteğe bağlı öznitelik belirleyiciler. |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
Çok terimli
Multinomial( const ::tensorflow::Scope & scope, ::tensorflow::Input logits, ::tensorflow::Input num_samples )
Çok terimli
Multinomial( const ::tensorflow::Scope & scope, ::tensorflow::Input logits, ::tensorflow::Input num_samples, const Multinomial::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
Çıktı Türü
Attrs OutputDtype( DataType x )
Tohum
Attrs Seed( int64 x )
Tohum2
Attrs Seed2( int64 x )