-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
XLA PoC #1275
XLA PoC #1275
Conversation
b03b044
to
8cb5eab
Compare
catalyst/engines/torch.py
Outdated
@@ -1,4 +1,4 @@ | |||
from typing import Any, Dict, List, Mapping, Tuple, Union | |||
from typing import Any, Callable, Dict, List, Mapping, Tuple, Union |
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 'typing.Callable' imported but unused
fe1c5b9
to
dfd6ae6
Compare
57f5adb
to
53d9ddd
Compare
Hello @Scitator! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-08-20 06:52:53 UTC |
2538074
to
758ec82
Compare
def spawn(self, fn: Callable, *args: Any, **kwargs: Any) -> None: | ||
"""Spawns abstraction for``nprocs`` creation with specified ``fn`` and ``args``/``kwargs``. | ||
|
||
Args: |
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 🐶
DAR101 Missing parameter(s) in Docstring: - **kwargs
def spawn(self, fn: Callable, *args: Any, **kwargs: Any) -> None: | ||
"""Spawns abstraction for``nprocs`` creation with specified ``fn`` and ``args``/``kwargs``. | ||
|
||
Args: |
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 🐶
DAR101 Missing parameter(s) in Docstring: - *args
def spawn(self, fn: Callable, *args: Any, **kwargs: Any) -> None: | ||
"""Spawns abstraction for``nprocs`` creation with specified ``fn`` and ``args``/``kwargs``. | ||
|
||
Args: |
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 🐶
DAR101 Missing parameter(s) in Docstring: - **kwargs
def spawn(self, fn: Callable, *args: Any, **kwargs: Any) -> None: | ||
"""Spawns abstraction for``nprocs`` creation with specified ``fn`` and ``args``/``kwargs``. | ||
|
||
Args: |
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 🐶
DAR101 Missing parameter(s) in Docstring: - *args
@@ -64,20 +72,57 @@ def get_nn_from_ddp_module(model: nn.Module) -> nn.Module: | |||
return model | |||
|
|||
|
|||
def get_backend() -> Optional[str]: |
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 🐶
D103 Missing docstring in public function
# pass | ||
|
||
|
||
def get_world_size() -> int: |
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 🐶
D103 Missing docstring in public function
b865672
to
3c88377
Compare
This pull request is now in conflicts. @Scitator, could you fix it? 🙏 |
This pull request is now in conflicts. @Scitator, could you fix it? 🙏 |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
catalyst/engines/amp.py
Outdated
@@ -238,12 +304,15 @@ def get_engine(self): | |||
stages: | |||
... | |||
|
|||
.. _convert_sync_batchnorm: https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html# |
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 🐶
E501 line too long (102 > 99 characters)
catalyst/engines/amp.py
Outdated
@@ -238,12 +304,15 @@ def get_engine(self): | |||
stages: | |||
... | |||
|
|||
.. _convert_sync_batchnorm: https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html# |
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 🐶
W505 doc line too long (102 > 99 characters)
catalyst/engines/fairscale.py
Outdated
@@ -203,103 +199,18 @@ def get_engine(self): | |||
|
|||
stages: | |||
... | |||
|
|||
.. _convert_sync_batchnorm: https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html# |
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 🐶
E501 line too long (102 > 99 characters)
catalyst/engines/fairscale.py
Outdated
@@ -203,103 +199,18 @@ def get_engine(self): | |||
|
|||
stages: | |||
... | |||
|
|||
.. _convert_sync_batchnorm: https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html# |
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 🐶
W505 doc line too long (102 > 99 characters)
catalyst/engines/fairscale.py
Outdated
@@ -424,6 +326,8 @@ def get_engine(self): | |||
stages: | |||
... | |||
|
|||
.. _convert_sync_batchnorm: https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html# |
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 🐶
E501 line too long (102 > 99 characters)
catalyst/engines/fairscale.py
Outdated
@@ -526,6 +433,8 @@ def get_engine(self): | |||
stages: | |||
... | |||
|
|||
.. _convert_sync_batchnorm: https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html# |
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 🐶
W505 doc line too long (102 > 99 characters)
catalyst/engines/torch.py
Outdated
@@ -357,19 +369,24 @@ def get_engine(self): | |||
stages: | |||
... | |||
|
|||
.. _convert_sync_batchnorm: https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html# |
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 🐶
E501 line too long (102 > 99 characters)
catalyst/engines/torch.py
Outdated
@@ -357,19 +369,24 @@ def get_engine(self): | |||
stages: | |||
... | |||
|
|||
.. _convert_sync_batchnorm: https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html# |
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 🐶
W505 doc line too long (102 > 99 characters)
catalyst/engines/apex.py
Outdated
@@ -439,19 +442,27 @@ def get_engine(self): | |||
|
|||
stages: | |||
... | |||
|
|||
.. _convert_sync_batchnorm: https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html# |
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 🐶
E501 line too long (102 > 99 characters)
catalyst/engines/apex.py
Outdated
@@ -439,19 +442,27 @@ def get_engine(self): | |||
|
|||
stages: | |||
... | |||
|
|||
.. _convert_sync_batchnorm: https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html# |
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 🐶
W505 doc line too long (102 > 99 characters)
Before submitting (checklist)
catalyst-make-codestyle && catalyst-check-codestyle
(pip install -U catalyst-codestyle
).make check-docs
?pytest .
?latest
andminimal
requirements?Description
PoC: https://colab.research.google.com/drive/1jG8qcp8plm7YEsFoeIInxtKZoxIRz1CT#scrollTo=r9mDrhuETaPG
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: