#include <random_ops.h>
Outputs random values from a uniform distribution.
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:
Optional attributes (see Attrs
):
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.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 | |
---|---|
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. |
::tensorflow::Output output
RandomUniform( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype )
RandomUniform( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype, const RandomUniform::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs Seed( int64 x )
Attrs Seed2( int64 x )
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/random-uniform.html