提交 76ee4bb6 编写于 作者: M malin10

bug fix

上级 b35fd879
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
from __future__ import print_function from __future__ import print_function
import sys import sys
import yaml
from paddlerec.core.utils import envs
from paddlerec.core.utils.envs import lazy_instance_by_fliename from paddlerec.core.utils.envs import lazy_instance_by_fliename
from paddlerec.core.reader import SlotReader from paddlerec.core.reader import SlotReader
...@@ -39,11 +38,6 @@ else: ...@@ -39,11 +38,6 @@ else:
yaml_abs_path = sys.argv[3] yaml_abs_path = sys.argv[3]
with open(yaml_abs_path, 'r') as rb:
config = yaml.load(rb.read(), Loader=yaml.FullLoader)
envs.set_global_envs()
envs.update_workspace()
if reader_name != "SlotReader": if reader_name != "SlotReader":
reader_class = lazy_instance_by_fliename(reader_package, reader_name) reader_class = lazy_instance_by_fliename(reader_package, reader_name)
reader = reader_class(yaml_abs_path) reader = reader_class(yaml_abs_path)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册