tensorflow :: ops :: RandomUniform
#include <random_ops.h>
Wyprowadza losowe wartości z jednolitego rozkładu.
streszczenie
Wygenerowane wartości mają równomierny rozkład w przedziale [0, 1)
. Dolna granica 0 jest zawarta w zakresie, a górna granica 1 jest wykluczona.
Argumenty:
- zakres: obiekt Scope
- kształt: kształt tensora wyjściowego.
- dtype: typ wyniku.
Atrybuty opcjonalne (patrz Attrs
):
- seed: Jeśli
seed
lubseed2
są ustawione na wartość niezerową, generator liczb losowych jest inicjowany przez dane ziarno. W przeciwnym razie jest wysiewany przez losowe ziarno. - seed2: drugie ziarno, aby uniknąć kolizji nasion.
Zwroty:
-
Output
: tensor o określonym kształcie wypełniony jednakowymi wartościami losowymi.
Konstruktorzy i niszczyciele | |
---|---|
RandomUniform (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype) | |
RandomUniform (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype, const RandomUniform::Attrs & attrs) |
Atrybuty publiczne | |
---|---|
operation | |
output |
Funkcje publiczne | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Publiczne funkcje statyczne | |
---|---|
Seed (int64 x) | |
Seed2 (int64 x) |
Struktury | |
---|---|
tensorflow :: ops :: RandomUniform :: Attrs | Opcjonalne metody ustawiające atrybuty dla RandomUniform . |
Atrybuty publiczne
operacja
Operation operation
wynik
::tensorflow::Output output
Funkcje publiczne
RandomUniform
RandomUniform( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype )
RandomUniform
RandomUniform( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype, const RandomUniform::Attrs & attrs )
węzeł
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Nasionko
Attrs Seed( int64 x )
Seed2
Attrs Seed2( int64 x )