From 2bacabab51af6f5c3712bb911a0cb29841e8760f Mon Sep 17 00:00:00 2001 From: xjqbest <173596896@qq.com> Date: Fri, 29 May 2020 12:10:37 +0800 Subject: [PATCH] fix --- core/trainers/single_trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/trainers/single_trainer.py b/core/trainers/single_trainer.py index 56741af5..274047a0 100755 --- a/core/trainers/single_trainer.py +++ b/core/trainers/single_trainer.py @@ -68,7 +68,7 @@ class SingleTrainer(TranspileTrainer): reader = os.path.join(abs_dir, '../utils', 'dataset_instance.py') sparse_slots = envs.get_global_env(name + "sparse_slots", "").strip() dense_slots = envs.get_global_env(name + "dense_slots", "").strip() - if sparse_slots != "" and dense_slots != "": + if sparse_slots == "" and dense_slots == "": pipe_cmd = "python {} {} {} {}".format(reader, reader_class, "TRAIN", self._config_yaml) else: -- GitLab