Skip to content

Commit

Permalink
Fixed a bug in integral computation batchification for DiracMixture
Browse files Browse the repository at this point in the history
  • Loading branch information
kduxin committed Nov 30, 2022
1 parent 0b6d9bb commit 25cb72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firelang/measure/dirac.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def integral(
func = func.view(*func.shape[:-1], func_size, 1, 1)

size = func_size * self.k
nrow_per_batch = (batch_size - size + 1) // size
nrow_per_batch = (batch_size + size - 1) // size
fx = []
for i in range(0, measure_size, nrow_per_batch):
_x = x[..., i : i + nrow_per_batch, :, :]
Expand Down

0 comments on commit 25cb72b

Please sign in to comment.