()
| 1431 | storage.wait_until_finished() |
| 1432 | |
| 1433 | asyncio.run(save()) |
| 1434 | |
| 1435 | async def restore(): |
| 1436 | # Successfully restores with different dtypes. |
| 1437 | restored_state = storage.restore_from_dir( |
| 1438 | step, |
| 1439 | state=make_state(float_dtype=restore_floats_as), |
| 1440 | ckpt_dir=final_dir, |
| 1441 | validation=CheckpointValidationType.EXACT_UP_TO_DTYPE, |
| 1442 | ) |
| 1443 | return restored_state |
| 1444 |
no test coverage detected