Merge pull request #125 from WuHaobo/support_1.8

refine reader to support paddle1.8 API and fix the code style
pull/130/head
WuHaobo 2020-05-18 09:55:19 +08:00 committed by GitHub
commit 0ba7376fac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -13,10 +13,11 @@
# limitations under the License.
import numpy as np
import imghdr
import os
import signal
import imghdr
import paddle
from paddle.fluid.io import multiprocess_reader
from . import imaug
from .imaug import transform
@ -215,7 +216,7 @@ def mp_reader(params):
for part_id in range(part_num):
readers.append(partial_reader(params, full_lines, part_id, part_num))
return paddle.reader.multiprocess_reader(readers, use_pipe=False)
return multiprocess_reader(readers, use_pipe=False)
def term_mp(sig_num, frame):