tensorflow::ops::RandomGamma

#include <random_ops.h>

Outputs random values from the Gamma distribution(s) described by alpha.

Summary

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

Args:

  • scope: A Scope object
  • shape: 1-D integer tensor. Shape of independent samples to draw from each distribution described by the shape parameters given in alpha.
  • alpha: A tensor in which each scalar is a "shape" parameter describing the associated gamma distribution.

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

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

Optional attribute setters for RandomGamma.

Public attributes

operation

Operation operation

output

::tensorflow::Output output

Public functions

RandomGamma

 RandomGamma(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  ::tensorflow::Input alpha
)

RandomGamma

 RandomGamma(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  ::tensorflow::Input alpha,
  const RandomGamma::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
)