tensorflow:: ops:: TruncatedNormal

#include <random_ops.h>

切断正規分布からランダムな値を出力します。

まとめ

生成される値は、平均0、標準偏差1の正規分布に従いますが、平均値から2標準偏差以上離れた値は除外され、再度選択されます。

議論:

  • スコープ:スコープオブジェクト
  • shape: 出力テンソルの形状。
  • dtype: 出力の型。

オプション属性( Attrs参照):

  • seed: seedまたはseed2いずれかがゼロ以外の値に設定されている場合、乱数生成器は指定されたシード値で初期化されます。それ以外の場合は、ランダムなシード値で初期化されます。
  • seed2: シードの衝突を避けるための2つ目のシード。

返品:

  • Output :指定された形状のテンソルに、ランダムに切り捨てられた正規値が格納されます。

コンストラクターとデストラクタ

TruncatedNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype)
TruncatedNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype, const TruncatedNormal::Attrs & attrs)

公開属性

operation
output

公的機能

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

パブリック静的関数

Seed (int64 x)
Seed2 (int64 x)

構造

tensorflow:: ops:: TruncatedNormal:: Attrs

TruncatedNormalのオプション属性設定子。

公開属性

手術

Operation operation

出力

::tensorflow::Output output

公的機能

切り捨てられた正規表現

 TruncatedNormal(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  DataType dtype
)

切り捨てられた正規表現

 TruncatedNormal(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  DataType dtype,
  const TruncatedNormal::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
)