提交 4a8aebe2 编写于 作者: W wuzewu

Fix ci warning

上级 76f10127
......@@ -64,8 +64,6 @@ class Downloader(object):
os.remove(file_name)
while not (os.path.exists(file_name)):
if os.path.exists(file_name):
logger.info("file md5", md5file(file_name))
if retry_times < retry_limit:
retry_times += 1
else:
......
......@@ -46,7 +46,7 @@ class InputExample(object):
return "text={}\tlabel={}".format(self.text_a, self.label)
else:
return "text_a={}\ttext_b{},label={}".format(
self.text_a, self.text_b, label)
self.text_a, self.text_b, self.label)
class HubDataset(object):
......
......@@ -600,6 +600,7 @@ class BasicTask(object):
def _run_with_py_reader(self, do_eval=False):
flag = False
use_data_parallel_backup = self.config.use_data_parallel
while True:
global_run_states = []
period_run_states = []
......@@ -644,7 +645,6 @@ class BasicTask(object):
self.config._use_data_parallel = use_data_parallel_backup
elif len(global_run_states) == 0:
flag = True
use_data_parallel_backup = self.config.use_data_parallel
self.config._use_data_parallel = False
continue
break
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册