Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings


View source on GitHub

Create a random variable for Sample.

    *args, **kwargs

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' + distribution.name).