torch_truncnorm
torch_truncnorm copied to clipboard
Truncated Normal Distribution in PyTorch
# Problem One sided truncated normal distributions are not differentiable with respect to their parameters. # Solution Add explicit handling of truncated normal distributions when calculating the probability density and...
Thanks for making this. Very helpful! It'd be really nice if you could `pip install` it.
My code looks like ```py m = TruncatedNormal(loc, scale, 0, 1) action_pt = m.sample() return m.log_prob(action_pt) ``` It looks like `action_pt` can take the value `1.0` and causes `log_prob` to...
Dear Anton, I'm currently trying to add the expand function to the truncated normal class you provided, as I need to generate multiple truncated normal distributions in parallel. I've made...