diff --git a/fleetrec/core/factory.py b/fleetrec/core/factory.py index 11752bcab719666bb785c6f6e8378237198ff532..9a1fa3cf76f33cade87e6f6e91139ab06e558ff7 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":