#include <random_ops.h>
Outputs random values from the Gamma distribution(s) described by alpha.
This op uses the algorithm by Marsaglia et al. to acquire samples via transformation-rejection from pairs of uniform and normal random variables. See http://dl.acm.org/citation.cfm?id=358414
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 with shape shape + shape(alpha)
. Each slice [:, ..., :, i0, i1, ...iN]
contains the samples drawn for alpha[i0, i1, ...iN]
. The dtype of the output matches the dtype of alpha. Constructors and Destructors | |
---|---|
RandomGamma(const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input alpha) | |
RandomGamma(const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input alpha, const RandomGamma::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::RandomGamma::Attrs | Optional attribute setters for RandomGamma. |
::tensorflow::Output output
RandomGamma( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input alpha )
RandomGamma( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input alpha, const RandomGamma::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs Seed( int64 x )
Attrs Seed2( int64 x )
© 2018 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-gamma.html