diff --git a/python/paddle/distributed/passes/auto_parallel_amp.py b/python/paddle/distributed/passes/auto_parallel_amp.py index 064075bff366776fa5738138b47f827c18a1fe48..dcfac246f4e5c66d7a60a035861225b5b78e9918 100644 --- a/python/paddle/distributed/passes/auto_parallel_amp.py +++ b/python/paddle/distributed/passes/auto_parallel_amp.py @@ -520,6 +520,7 @@ class AMPPass(PassBase): self._loss_scaling = None self._num_good_steps = None self._num_bad_steps = None + self._loss = None def _check_self(self): if self.get_attr("init_loss_scaling") < 0: