You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like in that case num_chunks == 2 (should be 1) because pad == chunk_size (should be 0) even though batch_size % chunk_size == 0. This is the line that causes extra padding:
Bug Description
I was confused why the map branch was executed
numpyro/numpyro/util.py
Line 453 in 627d19a
when I passed
parallel=True
toPredictive()
.It looks like in that case
num_chunks == 2
(should be1
) becausepad == chunk_size
(should be0
) even thoughbatch_size % chunk_size == 0
. This is the line that causes extra padding:numpyro/numpyro/util.py
Line 441 in 627d19a
Please let me know whether my reasoning makes sense.
This commit fixes the issue.
Steps to Reproduce
N/A
Expected Behavior
No padding when
batch_size % chunk_size == 0
.The text was updated successfully, but these errors were encountered: