diff --git a/paddlepalm/distribute/reader.py b/paddlepalm/distribute/reader.py index 7ddafb4ac8038f22385aa102af8fc086646bcf59..062c7c9472a0dad7b2059187d74cacc1808a528b 100644 --- a/paddlepalm/distribute/reader.py +++ b/paddlepalm/distribute/reader.py @@ -125,6 +125,6 @@ def decode_fake(nums, mask, bs): n_f = len(mask) - n_t p1 = nums - (n_t-1) * bs - each_f = p1 / (n_f+1) + each_f = p1 // (n_f+1) return each_f * n_f