New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Engines refactoring #1243
Engines refactoring #1243
Conversation
1195d1f
to
cdec198
Compare
# pass | ||
@property | ||
@abstractmethod | ||
def device(self) -> Device: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
D102 Missing docstring in public method
catalyst/core/runner.py
Outdated
@@ -286,6 +286,28 @@ def hparams(self) -> OrderedDict: | |||
""" | |||
return {} | |||
|
|||
@property | |||
def _log_defaults(self) -> Dict: | |||
return dict( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
C408 Unnecessary dict call - rewrite as a literal.
catalyst/engines/deepspeed.py
Outdated
@@ -7,13 +7,12 @@ | |||
|
|||
from catalyst.engines.torch import DeviceEngine | |||
from catalyst.settings import SETTINGS | |||
from catalyst.utils.distributed import mean_reduce, sum_reduce | |||
from catalyst.utils.distributed import ddp_reduce, mean_reduce, sum_reduce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
F401 'catalyst.utils.distributed.mean_reduce' imported but unused
catalyst/engines/deepspeed.py
Outdated
@@ -7,13 +7,12 @@ | |||
|
|||
from catalyst.engines.torch import DeviceEngine | |||
from catalyst.settings import SETTINGS | |||
from catalyst.utils.distributed import mean_reduce, sum_reduce | |||
from catalyst.utils.distributed import ddp_reduce, mean_reduce, sum_reduce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
F401 'catalyst.utils.distributed.sum_reduce' imported but unused
catalyst/engines/torch.py
Outdated
RunnerOptimizer, | ||
RunnerScheduler, | ||
) | ||
from catalyst.utils.distributed import ddp_reduce, mean_reduce, sum_reduce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
F401 'catalyst.utils.distributed.mean_reduce' imported but unused
catalyst/engines/torch.py
Outdated
RunnerOptimizer, | ||
RunnerScheduler, | ||
) | ||
from catalyst.utils.distributed import ddp_reduce, mean_reduce, sum_reduce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
F401 'catalyst.utils.distributed.sum_reduce' imported but unused
return f"{self.__class__.__name__}(device='{self._device}')" | ||
|
||
@property | ||
def device(self) -> Device: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
D102 Missing docstring in public method
catalyst/engines/fairscale.py
Outdated
@@ -11,7 +11,7 @@ | |||
from catalyst.engines.torch import DeviceEngine | |||
from catalyst.settings import SETTINGS | |||
from catalyst.typing import RunnerCriterion, RunnerModel, RunnerOptimizer, RunnerScheduler | |||
from catalyst.utils.distributed import mean_reduce, sum_reduce | |||
from catalyst.utils.distributed import ddp_reduce, mean_reduce, sum_reduce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
F401 'catalyst.utils.distributed.mean_reduce' imported but unused
catalyst/engines/fairscale.py
Outdated
@@ -11,7 +11,7 @@ | |||
from catalyst.engines.torch import DeviceEngine | |||
from catalyst.settings import SETTINGS | |||
from catalyst.typing import RunnerCriterion, RunnerModel, RunnerOptimizer, RunnerScheduler | |||
from catalyst.utils.distributed import mean_reduce, sum_reduce | |||
from catalyst.utils.distributed import ddp_reduce, mean_reduce, sum_reduce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
F401 'catalyst.utils.distributed.sum_reduce' imported but unused
Before submitting (checklist)
catalyst-make-codestyle && catalyst-check-codestyle
(pip install -U catalyst-codestyle
).make check-docs
?pytest .
?latest
andminimal
requirements?Description
Related Issue
Type of Change
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
FAQ
Please review the FAQ before submitting an issue: