Skip to content

Commit 086eccc

Browse files
authored
Update distributions.py
1 parent 298f2a3 commit 086eccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/irt/distributions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def rsample(self, sample_shape: _size = torch.Size()) -> torch.Tensor:
374374
### BUT we MUST do it in more efficient way and the most efficient way is to use C++ implementation from Torch.###
375375
##################################################################################################################
376376
value = torch._standard_gamma(self.concentration)/rate.detach()
377-
u = value.detach() * rate
377+
u = value.detach() * rate.detach() / rate
378378
value = value + (u - u.detach())
379379

380380
value.detach().clamp_(

0 commit comments

Comments
 (0)