テンソルフロー::作戦::多項式
#include <random_ops.h>多項分布からサンプルを抽出します。
まとめ
引数:
- スコープ:スコープオブジェクト
- logits: 形状[batch_size, num_classes]の 2 次元テンソル。各スライス[i, :]すべてのクラスの非正規化対数確率を表します。
- サンプル数: 0-D。各行スライスに対して描画する独立したサンプルの数。
オプションの属性 ( Attrsを参照):
- シード: シードまたはシード 2 のいずれかが 0 以外に設定されている場合、内部乱数ジェネレーターは指定されたシードによってシードされます。それ以外の場合は、ランダム シードが使用されます。
- シード2: シードの衝突を避けるための 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のオプションの属性セッター。 | 
パブリック属性
手術
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
演算子::tensorflow::入力
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const
パブリック静的関数
出力タイプ
Attrs OutputDtype( DataType x )
シード
Attrs Seed( int64 x )
シード2
Attrs Seed2( int64 x )