Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now


Create a random variable for Sample.


Defined in python/edward2/

See Sample for more details.



Original Docstring for Distribution

Construct the Sample distribution.


  • distribution: The base distribution instance to transform. Typically an instance of Distribution.
  • sample_shape: int scalar or vector Tensor representing the shape of a single sample.
  • validate_args: Python bool. Whether to validate input with asserts. If validate_args is False, and the inputs are invalid, correct behavior is not guaranteed.
  • name: The name for ops managed by the distribution. Default value: None (i.e., 'Sample' +