TensorFlow 2.0 Beta is available Learn more

tfp.edward2.JointDistributionCoroutine

Create a random variable for JointDistributionCoroutine.

tfp.edward2.JointDistributionCoroutine(
    *args,
    **kwargs
)

Defined in python/edward2/interceptor.py.

See JointDistributionCoroutine for more details.

Returns:

RandomVariable.

Original Docstring for Distribution

Construct the JointDistributionCoroutine distribution.

Args:

  • model: A generator that yields a sequence of tfd.Distribution-like instances.
  • sample_dtype: Samples from this distribution will be structured like tf.nest.pack_sequence_as(sample_dtype, list_). sample_dtype is only used for tf.nest.pack_sequence_as structuring of outputs, never casting (which is the responsibility of the component distributions). Default value: None (i.e., tuple).
  • 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. Default value: False.
  • name: The name for ops managed by the distribution. Default value: None (i.e., "JointDistributionCoroutine").