From 3ac8b7b135272d1f54c1b29c022edaa023caa2ca Mon Sep 17 00:00:00 2001 From: tangwei Date: Wed, 15 Apr 2020 19:39:29 +0800 Subject: [PATCH] update setup.py --- fleetrec/core/factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fleetrec/core/factory.py b/fleetrec/core/factory.py index 11752bca..9a1fa3cf 100644 --- a/fleetrec/core/factory.py +++ b/fleetrec/core/factory.py @@ -34,7 +34,7 @@ class TrainerFactory(object): train_mode = envs.get_global_env("train.strategy.mode") - if train_mode is not None: + if train_mode is None: train_mode = envs.get_runtime_envion("train.trainer") if train_mode == "SingleTraining": -- GitLab