tf_agents.distributions.reparameterized_sampling.sample

View source on GitHub

Sample from distribution either with reparameterized sampling or regular sampling.

distribution A tfp.distributions.Distribution instance.
reparam Whether to use reparameterized sampling.
**kwargs Parameters to be passed to distribution's sample() fucntion.

Returns: