tensorflow::ops::RandomUniform

#include <random_ops.h>

Outputs random values from a uniform distribution.

Summary

The generated values follow a uniform distribution in the range [0, 1). The lower bound 0 is included in the range, while the upper bound 1 is excluded.

Arguments:

  • scope: A Scope object
  • shape: The shape of the output tensor.
  • dtype: The type of the output.

Optional attributes (see Attrs):

  • seed: If either seed or seed2 are set to be non-zero, the random number generator is seeded by the given seed. Otherwise, it is seeded by a random seed.
  • seed2: A second seed to avoid seed collision.

Returns:

  • Output: A tensor of the specified shape filled with uniform random values.

Constructors and Destructors

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

Public attributes

operation
output

Public functions

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

Public static functions

Seed(int64 x)
Seed2(int64 x)

Structs

tensorflow::ops::RandomUniform::Attrs

Optional attribute setters for RandomUniform.

Public attributes

operation

Operation operation

output

::tensorflow::Output output

Public functions

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
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Public static functions

Seed

Attrs Seed(
  int64 x
)

Seed2

Attrs Seed2(
  int64 x
)