From a6ac4e80a2e2beb3f970e6931f1dc618507acb5c Mon Sep 17 00:00:00 2001 From: danleifeng <52735331+danleifeng@users.noreply.github.com> Date: Mon, 13 Sep 2021 20:07:00 +0800 Subject: [PATCH] fix launch util trainer rank function; test=develop (#35610) --- python/paddle/distributed/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/distributed/utils.py b/python/paddle/distributed/utils.py index a8d304907a6..6d14b30d18c 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 -- GitLab