From 1b9304dd6f299e6113849d15063e9dccbbcfac18 Mon Sep 17 00:00:00 2001 From: wangxiao1021 Date: Mon, 13 Apr 2020 21:13:47 +0800 Subject: [PATCH] fix issue #75 --- paddlepalm/distribute/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlepalm/distribute/reader.py b/paddlepalm/distribute/reader.py index 7ddafb4..062c7c9 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 -- GitLab