20 September 2021 0 3K Report

I want to truncate the normal distribution generated using torch.distributions.Normal function in pytorch, by setting an upper bound and lower bound.

Can someone suggest a way to truncate that?

Or is that possible to sample from a particular range using rsample() function?

More Jiffy Joseph's questions See All
Similar questions and discussions