未验证 提交 0ba7376f 编写于 作者: W WuHaobo 提交者: GitHub

Merge pull request #125 from WuHaobo/support_1.8

refine reader to support paddle1.8 API and fix the code style
......@@ -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):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册