tensorflow :: ops ::多項
#include <random_ops.h>
多項分布からサンプルを抽出します。
概要
引数:
- スコープ:スコープオブジェクト
- ロジット:形状
[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
パブリック静的関数
OutputDtype
Attrs OutputDtype( DataType x )
シード
Attrs Seed( int64 x )
Seed2
Attrs Seed2( int64 x )