Skip to content

Commit

Permalink
unfreeze
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitator committed May 27, 2020
1 parent bec2593 commit 9f945d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion catalyst/contrib/dl/callbacks/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _trace(self, state: _Runner):
checkpoint_name_to_restore = "best"

traced_model = trace_model_from_runner(
state=state,
runner=state,
checkpoint_name=checkpoint_name_to_restore,
method_name=self.method_name,
mode=self.trace_mode,
Expand Down
3 changes: 2 additions & 1 deletion catalyst/core/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def __init__(
self._model = None
self._prepare_inner_state(device=device, model=model)
self._init()
self._freeze()
# @TODO: how to fix?
# self._freeze()

def _prepare_inner_state(
self,
Expand Down
7 changes: 0 additions & 7 deletions docs/api/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ Callback
:undoc-members:
:show-inheritance:

State
~~~~~~~~~~~~~~~~~~~~~~
.. automodule:: catalyst.core.state
:members:
:undoc-members:
:show-inheritance:

Callbacks
----------------------

Expand Down
4 changes: 2 additions & 2 deletions docs/api/dl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Experiment

Experiment
~~~~~~~~~~~~~~~~~~~~~~
.. automodule:: catalyst.dl.experiment.core
.. automodule:: catalyst.dl.experiment.experiment
:members:
:undoc-members:
:show-inheritance:
Expand Down Expand Up @@ -45,7 +45,7 @@ Runner

Runner
~~~~~~~~~~~~~~~~~~~~~~
.. automodule:: catalyst.dl.runner.core
.. automodule:: catalyst.dl.runner.runner
:members:
:undoc-members:
:show-inheritance:
Expand Down

0 comments on commit 9f945d7

Please sign in to comment.