diff --git a/fleetrec/core/trainers/transpiler_trainer.py b/fleetrec/core/trainers/transpiler_trainer.py index ee8ea3f199799852a2b1da2740d4866d87ff7ec2..3f8e41e4748c6a8d987fe6e278eccf1fabbedf78 100644 --- a/fleetrec/core/trainers/transpiler_trainer.py +++ b/fleetrec/core/trainers/transpiler_trainer.py @@ -39,7 +39,7 @@ class TranspileTrainer(Trainer): namespace = "train.reader" inputs = self.model.get_inputs() - threads = envs.get_global_env("train.threads", None) + threads = int(envs.get_runtime_envion("trainer.threads")) batch_size = envs.get_global_env("batch_size", None, namespace) reader_class = envs.get_global_env("class", None, namespace) abs_dir = os.path.dirname(os.path.abspath(__file__))