diff --git a/python/paddle/fluid/trainer.py b/python/paddle/fluid/trainer.py index 68c62a0e0bf09312647f28bd12a47971698c4c5f..6084e860ed9cb071f4afc8536f013843dc3f1a7b 100644 --- a/python/paddle/fluid/trainer.py +++ b/python/paddle/fluid/trainer.py @@ -288,7 +288,7 @@ class Trainer(object): _load_persistable_vars(exe, param_path, self.startup_program, False, [self.lookup_table_name] if self.lookup_table_name else []) - if self.lookup_table_name and self.pserver_id: + if self.lookup_table_name and self.pserver_id is not None: _load_lookup_table_vars(exe, param_path, self.startup_program, self.pserver_id, self.lookup_table_name)