Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure checkpoint files are written immediately after evaluation comp…
…letes. Previously, checkpoint files were written when the writer object was destroyed, relying on the `del` statement to trigger garbage collection. However, `del` only decreases the reference count of the object and does not guarantee its immediate destruction. This change explicitly closes the writer to ensure checkpoint files are saved promptly after evaluation. PiperOrigin-RevId: 707287518
- Loading branch information