Borrar filtros
Borrar filtros

Keeping the state after loading from a checkpoint

2 visualizaciones (últimos 30 días)
John Smith
John Smith el 2 de Mzo. de 2023
Comentada: John Smith el 6 de Mzo. de 2023
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 comentario
John Smith
John Smith el 6 de Mzo. de 2023
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?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by