Created by: gongweibao
PR types
New features
PR changes
APIs
Describe
Automatic checkpoint is used under two scenes:
- When user use auto_checkpoint.train_epoch_range:
import paddle.fluid.incubate.auto_checkpoint as acp
for i in acp.train_epoch_range(3):
for data in data_loader():
exe.run(program, data, fetch)
- Otherwise it useful when user use DataLoader.from_generator
data_loader=DataLoader.from_generator(reader)
for i in range(3):
for data in data_loader():
exe.run(program, data, fetch)
It's only used on paddlecloud platform now.