From a3cc2d0b64e7ab80fcb5d25aa01e613e156c0541 Mon Sep 17 00:00:00 2001 From: JZ-LIANG <38102074+JZ-LIANG@users.noreply.github.com> Date: Mon, 9 Aug 2021 13:19:36 +0800 Subject: [PATCH] bugfix remove fluid (#34680) --- python/paddle/fluid/optimizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/optimizer.py b/python/paddle/fluid/optimizer.py index ef168d2d92175..ab3dbad1ef326 100755 --- a/python/paddle/fluid/optimizer.py +++ b/python/paddle/fluid/optimizer.py @@ -6031,7 +6031,7 @@ def _offload(self, loss, startup_program=None): self._main_program = loss.block.program self.block = loss.block if startup_program == None: - startup_program = fluid.default_startup_program() + startup_program = paddle.static.default_startup_program() with program_guard(self._main_program, startup_program): assert len(self.checkpoint_shape) > 0, (