tensorflow:: ops:: 多項式
#include <random_ops.h>多項分布からサンプルを抽出する。
まとめ
議論:
- スコープ:スコープオブジェクト
- logits: 形状が
[batch_size, num_classes]の 2 次元テンソル。各スライス[i, :]は、すべてのクラスの正規化されていない対数確率を表します。 - num_samples: 0-D。各行スライスに対して抽出する独立したサンプルの数。
オプション属性( Attrs参照):
- seed: seedまたはseed2のいずれかがゼロ以外の値に設定されている場合、内部乱数生成器は指定されたシード値で初期化されます。それ以外の場合は、ランダムなシード値が使用されます。
- seed2: シードの衝突を避けるための2つ目のシード。
返品:
コンストラクターとデストラクタ | |
|---|---|
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) |
公開属性 | |
|---|---|
operation | |
output | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
OutputDtype (DataType x) | |
Seed (int64 x) | |
Seed2 (int64 x) | |
構造 | |
|---|---|
| tensorflow:: ops:: Multinomial:: Attrs | 多項式のオプション属性設定子。 |
公開属性
手術
Operation operation
出力
::tensorflow::Output output
公的機能
多項式
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 )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
出力データ型
Attrs OutputDtype( DataType x )
シード
Attrs Seed( int64 x )
シード2
Attrs Seed2( int64 x )