Skip to content

Commit

Permalink
fix: added a simple way to add additional handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
MLRichter committed Jan 28, 2022
1 parent d968884 commit 8f2cefd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion rfa_toolbox/encodings/pytorch/__init__.py
@@ -1,2 +1,5 @@
# flake8: noqa: F401
from rfa_toolbox.encodings.pytorch.utils import toggle_coerce_torch_functional
from rfa_toolbox.encodings.pytorch.utils import (
add_custom_layer_handler,
toggle_coerce_torch_functional,
)
2 changes: 1 addition & 1 deletion tests/test_encodings/test_pytorch.py
Expand Up @@ -108,7 +108,7 @@ def test_adding_a_handler(self):
)

from rfa_toolbox import create_graph_from_pytorch_model
from rfa_toolbox.encodings.pytorch.utils import add_custom_layer_handler
from rfa_toolbox.encodings.pytorch import add_custom_layer_handler

def kernel_size(module):
x1 = module.k_size
Expand Down

0 comments on commit 8f2cefd

Please sign in to comment.