Registration is open for TensorFlow Dev Summit 2020 Learn more


View source on GitHub

Create a random variable for Independent.


See Independent for more details.



Original Docstring for Distribution

Construct an Independent distribution.


  • distribution: The base distribution instance to transform. Typically an instance of Distribution.
  • reinterpreted_batch_ndims: Scalar, integer number of rightmost batch dims which will be regarded as event dims. When None all but the first batch axis (batch axis 0) will be transferred to event dimensions (analogous to tf.layers.flatten).
  • 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: Independent +


  • ValueError: if reinterpreted_batch_ndims exceeds distribution.batch_ndims