tensorflow:: ops:: RandomUniformInt

#include <random_ops.h>

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

まとめ

生成される値は、 [minval, maxval)の範囲内の均一な整数です。下限値minvalは範囲に含まれますが、上限値maxvalは範囲から除外されます。

maxval - minvalが正確に 2 のべき乗でない限り、乱数整数にはわずかな偏りがあります。maxval maxval - minvalの値が出力範囲 ( 2^32または2^64 ) よりかなり小さい場合、偏りは小さくなります。

議論:

  • スコープ:スコープオブジェクト
  • shape: 出力テンソルの形状。
  • minval: 0-D。生成される整数の下限値(0を含む)。
  • maxval: 0-D。生成される整数の排他的な上限値。

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

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

返品:

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

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

RandomUniformInt (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input minval, :: tensorflow::Input maxval)
RandomUniformInt (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input minval, :: tensorflow::Input maxval, const RandomUniformInt::Attrs & attrs)

公開属性

operation
output

公的機能

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

パブリック静的関数

Seed (int64 x)
Seed2 (int64 x)

構造

tensorflow:: ops:: RandomUniformInt:: Attrs

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

公開属性

手術

Operation operation

出力

::tensorflow::Output output

公的機能

ランダムユニフォーム整数

 RandomUniformInt(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  ::tensorflow::Input minval,
  ::tensorflow::Input maxval
)

ランダムユニフォーム整数

 RandomUniformInt(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  ::tensorflow::Input minval,
  ::tensorflow::Input maxval,
  const RandomUniformInt::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
)