-
-
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
state to runner #823
state to runner #823
Conversation
Check out this pull request on Review Jupyter notebook visual diffs & provide feedback on notebooks. Powered by ReviewNB |
Hello @Scitator! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2020-05-28 06:31:04 UTC |
catalyst/core/runner.py
Outdated
device (Device): Torch device | ||
""" | ||
self._model: Model = model | ||
self._device: Device = device | ||
self._prepare_inner_state(device=device, model=model) |
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 🐶
E241 multiple spaces after ','
85a903b
to
9f945d7
Compare
9f945d7
to
b7fc5b2
Compare
catalyst/core/runner.py
Outdated
|
||
|
||
Runner section | ||
|
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 🐶
W293 blank line contains whitespace
catalyst/core/runner.py
Outdated
|
||
|
||
Experiment section | ||
|
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 🐶
W293 blank line contains whitespace
catalyst/core/runner.py
Outdated
|
||
|
||
Dataflow section | ||
|
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 🐶
W293 blank line contains whitespace
catalyst/core/runner.py
Outdated
|
||
|
||
Metrics section | ||
|
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 🐶
W293 blank line contains whitespace
catalyst/core/runner.py
Outdated
|
||
|
||
Validation metrics section | ||
|
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 🐶
W293 blank line contains whitespace
catalyst/core/runner.py
Outdated
|
||
|
||
Epoch info section | ||
|
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 🐶
W293 blank line contains whitespace
catalyst/core/runner.py
Outdated
|
||
|
||
Loader info section | ||
|
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 🐶
W293 blank line contains whitespace
catalyst/core/runner.py
Outdated
|
||
|
||
Batch info section | ||
|
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 🐶
W293 blank line contains whitespace
catalyst/core/runner.py
Outdated
**runner.batch_size** - int, length of the current batch | ||
|
||
Logging section | ||
|
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 🐶
W293 blank line contains whitespace
catalyst/core/runner.py
Outdated
with all extra data for experiment tracking | ||
|
||
Extra section | ||
|
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 🐶
W293 blank line contains whitespace
73f80a6
to
1002d13
Compare
todo:
|
@@ -31,16 +31,16 @@ def __getitem__(self, index: int): | |||
class Experiment(ConfigExperiment): | |||
"""``ConfigExperiment`` with CIFAR10 dataset.""" | |||
|
|||
def _postprocess_model_for_stage(self, stage: str, model: nn.Module): | |||
model_ = model | |||
def get_model(self, stage: 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 🐶
D102 Missing docstring in public method
catalyst/dl/experiment/config.py
Outdated
self._config["stages"]["state_params"] = utils.merge_dicts( | ||
deepcopy(self._config["stages"].get("state_params", {})), | ||
self._config["stages"]["stage_params"] = utils.merge_dicts( | ||
deepcopy(self._config["stages"].get("state_params", {})), # saved for backward compatibility |
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 (105 > 79 characters)
0e5770e
to
e6b3e05
Compare
e6b3e05
to
01deb15
Compare
* state to runner (#823) * state to runner * import & codestyle fix * unfreeze * remaning & docs * config and freeze * last renaming * froze update * merged with master
Before submitting
catalyst-make-codestyle && catalyst-check-codestyle
(pip install -U catalyst-codestyle
).make check-docs
?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.