tensorflow:: ops:: RandomUniform

#include <random_ops.h>

一様分布からランダムな値を出力します。

まとめ

生成される値は、範囲[0, 1)で一様分布に従います。下限の 0 は範囲に含まれますが、上限の 1 は含まれません。

議論:

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

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

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

返品:

  • Output :指定された形状のテンソルで、一様乱数値が埋め込まれています。

構築者と破壊者

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

公開属性

operation
output

公的機能

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

パブリック静的関数

Seed (int64 x)
Seed2 (int64 x)

構造

tensorflow:: ops:: RandomUniform:: Attrs

RandomUniformのオプション属性セッター。

公開属性

手術

Operation operation

出力

::tensorflow::Output output

公的機能

ランダム一様

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

ランダム一様

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