tensorflow:: ops:: RandomGamma
#include <random_ops.h>アルファで記述されるガンマ分布から乱数値を出力します。
まとめ
この操作では、Marsagliaらのアルゴリズムを用いて、一様乱数と正規乱数のペアから変換棄却法によってサンプルを取得します。詳細はhttp://dl.acm.org/citation.cfm?id=358414をご覧ください。
議論:
- スコープ:スコープオブジェクト
- shape: 1次元整数テンソル。alphaで指定された形状パラメータによって記述される各分布から抽出する独立サンプルの形状。
- alpha: 各スカラーが関連するガンマ分布を記述する「形状」パラメータであるテンソル。
オプション属性( Attrs参照):
- seed:
seedまたはseed2いずれかがゼロ以外の値に設定されている場合、乱数生成器は指定されたシード値で初期化されます。それ以外の場合は、ランダムなシード値で初期化されます。 - seed2: シードの衝突を避けるための2つ目のシード。
返品:
-
Output:形状shape + shape(alpha)のテンソル。各スライス[:, ..., :, i0, i1, ...iN]には、alpha[i0, i1, ...iN]に対して抽出されたサンプルが含まれます。出力のデータ型は alpha のデータ型と一致します。
コンストラクターとデストラクタ | |
|---|---|
RandomGamma (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input alpha) | |
RandomGamma (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input alpha, const RandomGamma::Attrs & attrs) |
公開属性 | |
|---|---|
operation | |
output | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
Seed (int64 x) | |
Seed2 (int64 x) | |
構造 | |
|---|---|
| tensorflow:: ops:: RandomGamma:: Attrs | RandomGammaのオプション属性設定子。 |
公開属性
手術
Operation operation
出力
::tensorflow::Output output
公的機能
ランダムガンマ
RandomGamma( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input alpha )
ランダムガンマ
RandomGamma( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input alpha, const RandomGamma::Attrs & attrs )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
シード
Attrs Seed( int64 x )
シード2
Attrs Seed2( int64 x )