diff options
author | A. Unique TensorFlower <nobody@tensorflow.org> | 2016-06-09 14:22:00 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-06-09 15:32:18 -0700 |
commit | 597bc1497870ef15e1e08bd94d675e53647ef846 (patch) | |
tree | 749d1234c5bf5c3b9e7ffe96c34dc658a7b7cd62 /tensorflow/g3doc/api_docs/python/constant_op.md | |
parent | 2d3b50112aff6bce1c3ef0ad5964c863863388e2 (diff) |
Update generated Python Op docs.
Change: 124503815
Diffstat (limited to 'tensorflow/g3doc/api_docs/python/constant_op.md')
-rw-r--r-- | tensorflow/g3doc/api_docs/python/constant_op.md | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tensorflow/g3doc/api_docs/python/constant_op.md b/tensorflow/g3doc/api_docs/python/constant_op.md index bdd39690a6..ccd881cca8 100644 --- a/tensorflow/g3doc/api_docs/python/constant_op.md +++ b/tensorflow/g3doc/api_docs/python/constant_op.md @@ -537,6 +537,54 @@ Example: - - - +### `tf.random_gamma(shape, alpha, beta=None, dtype=tf.float32, seed=None, name=None)` {#random_gamma} + +Draws `shape` samples from each of the given Gamma distribution(s). + +`alpha` is the shape parameter describing the distribution(s), and `beta` is +the inverse scale parameter(s). + +Example: + + samples = tf.random_gamma([10], [0.5, 1.5]) + # samples has shape [10, 2], where each slice [:, 0] and [:, 1] represents + # the samples drawn from each distribution + + samples = tf.random_gamma([7, 5], [0.5, 1.5]) + # samples has shape [7, 5, 2], where each slice [:, :, 0] and [:, :, 1] + # represents the 7x5 samples drawn from each of the two distributions + + samples = tf.random_gamma([30], [[1.],[3.],[5.]], beta=[[3., 4.]]) + # samples has shape [30, 3, 2], with 30 samples each of 3x2 distributions. + +##### Args: + + +* <b>`shape`</b>: A 1-D integer Tensor or Python array. The shape of the output samples + to be drawn per alpha/beta-parameterized distribution. +* <b>`alpha`</b>: A Tensor or Python value or N-D array of type `dtype`. `alpha` + provides the shape parameter(s) describing the gamma distribution(s) to + sample. Must be broadcastable with `beta`. +* <b>`beta`</b>: A Tensor or Python value or N-D array of type `dtype`. Defaults to 1. + `beta` provides the inverse scale parameter(s) of the gamma + distribution(s) to sample. Must be broadcastable with `alpha`. +* <b>`dtype`</b>: The type of alpha, beta, and the output: `float16`, `float32`, or + `float64`. +* <b>`seed`</b>: A Python integer. Used to create a random seed for the distributions. + See + [`set_random_seed`](../../api_docs/python/constant_op.md#set_random_seed) + for behavior. +* <b>`name`</b>: Optional name for the operation. + +##### Returns: + + +* <b>`samples`</b>: a `Tensor` of shape `tf.concat(shape, tf.shape(alpha + beta))` with + values of type `dtype`. + + +- - - + ### `tf.set_random_seed(seed)` {#set_random_seed} Sets the graph-level random seed. |