From 19ddd3da6afdf7b6e605ff98bbf8037df8ab1c99 Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Wed, 25 Jul 2018 15:10:31 +0800 Subject: [PATCH] hidden slice_vars in distribute transpile, hidden it to users --- python/paddle/fluid/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/trainer.py b/python/paddle/fluid/trainer.py index 68c62a0e0b..6084e860ed 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) -- GitLab