提交 013c12ff 编写于 作者: C chengmo

fix bug

上级 58a74dc4
...@@ -60,7 +60,7 @@ class TranspileTrainer(Trainer): ...@@ -60,7 +60,7 @@ class TranspileTrainer(Trainer):
if idx >= 9: if idx >= 9:
break break
print("--- DataLoader Debug Mode End , show pre 10 data ---") print("--- DataLoader Debug Mode End , show pre 10 data ---")
exit 0 exit(0)
reader_class = envs.lazy_instance_by_fliename(reader_class, class_name) reader_class = envs.lazy_instance_by_fliename(reader_class, class_name)
reader_ins = reader_class(self._config_yaml) reader_ins = reader_class(self._config_yaml)
...@@ -116,7 +116,7 @@ class TranspileTrainer(Trainer): ...@@ -116,7 +116,7 @@ class TranspileTrainer(Trainer):
os.system("cat {} | {} | head -10".format(file_list[0], pipe_cmd)) os.system("cat {} | {} | head -10".format(file_list[0], pipe_cmd))
print( print(
"--- Dataset Debug Mode End , show pre 10 data of {}---".format(file_list[0])) "--- Dataset Debug Mode End , show pre 10 data of {}---".format(file_list[0]))
exit 0 exit(0)
return dataset return dataset
......
...@@ -176,12 +176,6 @@ def get_platform(): ...@@ -176,12 +176,6 @@ def get_platform():
return "WINDOWS" return "WINDOWS"
<< << << < HEAD: fleet_rec/core/utils/envs.py
== == == =
>>>>>> > upstream/develop: core/utils/envs.py
def find_free_port(): def find_free_port():
def __free_port(): def __free_port():
with closing(socket.socket(socket.AF_INET, with closing(socket.socket(socket.AF_INET,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册