tensorflow :: ops :: RandomUniformInt
#include <random_ops.h>
一様分布からランダムな整数を出力します。
概要
生成される値は、 [minval, maxval)
範囲の均一な整数です。下限minval
上限が、範囲に含まれるmaxval
除外されます。
maxval - minval
が正確に2の累乗でない限り、ランダムな整数はわずかにバイアスされます。 maxval - minval
値が出力の範囲( 2^32
または2^64
)よりも大幅に小さい場合、バイアスは小さくなります。
引数:
- スコープ:スコープオブジェクト
- shape:出力テンソルの形状。
- 最小値:0-D。生成された整数の包括的下限。
- 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
RandomUniformInt( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input minval, ::tensorflow::Input maxval )
RandomUniformInt
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 )
Seed2
Attrs Seed2( int64 x )