未验证 提交 2ff43527 编写于 作者: B Bai Yifan 提交者: GitHub

fix py2/py3 compatity (#340)

上级 e0281498
......@@ -17,8 +17,8 @@ import os
import types
import csv
import numpy as np
import tokenization
from batching import prepare_batch_data
from . import tokenization
from .batching import prepare_batch_data
class DataProcessor(object):
......
......@@ -20,7 +20,6 @@ __all__ = ['DARTSearch', 'count_parameters_in_MB']
import os
import logging
from itertools import izip
import numpy as np
import paddle.fluid as fluid
from paddle.fluid.dygraph.base import to_variable
......@@ -107,7 +106,7 @@ class DARTSearch(object):
self.model.train()
step_id = 0
for train_data, valid_data in izip(train_loader(), valid_loader()):
for train_data, valid_data in zip(train_loader(), valid_loader()):
if epoch >= self.epochs_no_archopt:
architect.step(train_data, valid_data)
......
......@@ -17,8 +17,8 @@ import os
import types
import csv
import numpy as np
import tokenization
from batching import prepare_batch_data
from . import tokenization
from .batching import prepare_batch_data
class DataProcessor(object):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册