Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid race condition in creating checkpoint directories (#530)
* Avoid race condition in creating checkpoint directories In multi-GPU training, several processes run the code that creates checkpoint dirs. This fix avoids a probably rare situation (but it happened to me) where another process created a dir between the `exists` check and the `makedirs` call. * Remove the now unneeded check for dir existence
- Loading branch information