필터 지우기
필터 지우기

Keeping the state after loading from a checkpoint

조회 수: 2 (최근 30일)
John Smith
John Smith 2023년 3월 2일
댓글: John Smith 2023년 3월 6일
Hello,
I'm running an experiment using Deep Learning Toolbox. I'd like to resume execution after restarting from a checkpoint. However, the results aren't the same after every restart eventhough I save the global random generator state using s = rng(); before checkpointing and restoring it back with rng(s); after the loading from the checkpoint.
If I restart Matlab and then restart from the checkpoint then the results are the same.
What else do I need to save s.t. I can restart from a checkpoint and obtain the same results?
Thx
  댓글 수: 1
John Smith
John Smith 2023년 3월 6일
After more digging, the problem is that Matlab resets the datastore/minibatchqueue after reloading from a checkpoint rather than continuing from the checkpoint.
Is this a bug or an (undocumented) feature?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by