diff --git a/python/paddle/distributed/utils.py b/python/paddle/distributed/utils.py index a8d304907a6bb1e1e54c300b20e65cfc21980c34..6d14b30d18c7f1f8cccc979e0e6d97df3a6f0b8a 100644 --- a/python/paddle/distributed/utils.py +++ b/python/paddle/distributed/utils.py @@ -444,7 +444,7 @@ class Trainer(object): def __ne__(self, t): return not self == t - def rank(self): + def get_rank(self): return self.rank