Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#310 from zhiqiu/dev/remove_deprecated…
Browse files Browse the repository at this point in the history
…_mem_opt

Remove deprecated fluid.memory_optimize
  • Loading branch information
sneaxiy authored Sep 2, 2019
2 parents 8c1b58a + 276a555 commit e6e0af8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ def train(args):
decr_ratio=args.decr_ratio)


fluid.memory_optimize(
input_program=train_program,
skip_opt_set=[
next_sent_acc.name, mask_lm_loss.name, total_loss.name
])

test_prog = fluid.Program()
with fluid.program_guard(test_prog, startup_prog):
with fluid.unique_name.guard():
Expand Down

0 comments on commit e6e0af8

Please sign in to comment.