tensorflow::ops::Multinomik

#include <random_ops.h>

Çok terimli dağılımdan örnekler alır.

Özet

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • logits: [batch_size, num_classes] şeklinde 2 boyutlu bir tensör . Her dilim [i, :] tüm sınıflar için normalleştirilmemiş log olasılıklarını temsil eder.
  • num_samples: 0-D. Her satır dilimi için alınacak bağımsız örnek sayısı.

İsteğe bağlı özellikler (bkz. Attrs ):

  • seed: Eğer seed veya seed2 sıfırdan farklı bir değere ayarlanırsa, dahili rastgele sayı üreteci verilen seed değeriyle başlatılır. Aksi takdirde, rastgele bir seed değeri kullanılır.
  • seed2: Tohum çakışmasını önlemek için ikinci bir tohum.

İadeler:

  • Output : [batch_size, num_samples] şeklinde 2 boyutlu bir tensör . Her dilim [i, :] [0, num_classes) aralığındaki ç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

Herkese açık statik fonksiyonlar

OutputDtype (DataType x)
Seed (int64 x)
Seed2 (int64 x)

Yapılar

tensorflow::ops::Multinomik::Attrs

Multinomial için isteğe bağlı öznitelik ayarlayıcıları.

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 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const 

Herkese açık statik fonksiyonlar

ÇıkışTürü

Attrs OutputDtype(
  DataType x
)

Tohum

Attrs Seed(
  int64 x
)

Tohum2

Attrs Seed2(
  int64 x
)