tf_agents.distributions.reparameterized_sampling.sample

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: