-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Enable timeout in dist training (#877)
* Adding missing pre-commit requirement to tests.txt * Added support for setting a timeout for distributed learning * Adding documentation about how to change the runtime timeout into the distributed manual. * Fixed type in documentation to correctly specify an integer * Removing type-cast after checking the correct type already before * Update mmengine/dist/utils.py Adding an explicit `is not None` to the check Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Removing explicit type check and replacing it with more pythonic way of assuming it is the right type and handling the exception if the type doesn't match. * Removing pre-commit from test requirements again * Simplified the code according to suggestions from PR * Update distributed.md --------- Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
- Loading branch information
1 parent
d1d4609
commit 1aa14b4
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters