Skip to content

Commit

Permalink
bugfix remove fluid (#34680)
Browse files Browse the repository at this point in the history
  • Loading branch information
JZ-LIANG authored Aug 9, 2021
1 parent 898acb1 commit a3cc2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, (
Expand Down

0 comments on commit a3cc2d0

Please sign in to comment.