View source on GitHub |
Sample from distribution either with reparameterized sampling or regular sampling.
tf_agents.distributions.reparameterized_sampling.sample(
distribution, reparam=False, **kwargs
)
Args | |
---|---|
distribution
|
A tfp.distributions.Distribution instance.
|
reparam
|
Whether to use reparameterized sampling. |
**kwargs
|
Parameters to be passed to distribution's sample() fucntion. |
Returns: