From 76ee4bb69cf20c1b1fcca521fbd985d4cd44382b Mon Sep 17 00:00:00 2001 From: malin10 Date: Mon, 1 Jun 2020 21:04:50 +0800 Subject: [PATCH] bug fix --- core/utils/dataset_instance.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/utils/dataset_instance.py b/core/utils/dataset_instance.py index 5c9b0f56..3f0a3a48 100755 --- a/core/utils/dataset_instance.py +++ b/core/utils/dataset_instance.py @@ -14,8 +14,7 @@ from __future__ import print_function import sys -import yaml -from paddlerec.core.utils import envs + from paddlerec.core.utils.envs import lazy_instance_by_fliename from paddlerec.core.reader import SlotReader @@ -39,11 +38,6 @@ else: 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": reader_class = lazy_instance_by_fliename(reader_package, reader_name) reader = reader_class(yaml_abs_path) -- GitLab