TensorFlow 2.0 Beta is available Learn more

tfp.edward2.Sample

Create a random variable for Sample.

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

Defined in python/edward2/interceptor.py.

See Sample for more details.

Returns:

RandomVariable.

Original Docstring for Distribution

Construct the Sample distribution.

Args:

  • 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).