tensorflow:: ops:: RandomUniform

#include <random_ops.h>

Generuje losowe wartości z rozkładu jednostajnego.

Streszczenie

Wygenerowane wartości podlegają rozkładowi równomiernemu w zakresie [0, 1) . Dolna granica 0 jest uwzględniona w zakresie, natomiast górna granica 1 jest wyłączona.

Argumenty:

  • zakres: obiekt zakresu
  • kształt: Kształt tensora wyjściowego.
  • dtype: Typ wyjścia.

Atrybuty opcjonalne (patrz Attrs ):

  • seed: Jeśli albo seed , albo seed2 są ustawione na wartość różną od zera, generator liczb losowych jest zasiewany na podstawie podanego seeda. W przeciwnym razie jest zasiewany na podstawie ziarna losowego.
  • seed2: Drugie nasiono zapobiegające kolizji nasion.

Zwroty:

  • Output : Tensor o określonym kształcie wypełniony jednorodnymi wartościami losowymi.

Konstruktory i destruktory

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 settery atrybutów dla RandomUniform .

Atrybuty publiczne

działanie

Operation operation

wyjście

::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

Nasienie

Attrs Seed(
  int64 x
)

Seed2

Attrs Seed2(
  int64 x
)