Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nncf/torch/model_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,10 @@ def wrap_model(
if not trace_parameters:
msg = "The 'trace_parameters=False' option is not supported in the experimental tracing mode."
raise nncf.InternalError(msg)
from nncf.experimental.torch2.function_hook import wrap_model
from nncf.experimental.torch2.function_hook import wrap_model as pt2_wrap_model
from nncf.experimental.torch2.function_hook.nncf_graph.nncf_graph_builder import GraphModelWrapper

wrapped_model = GraphModelWrapper(wrap_model(model), example_input=example_input)
wrapped_model = GraphModelWrapper(pt2_wrap_model(model), example_input=example_input)
return wrapped_model

if not isinstance(model, torch.nn.Module):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"__nncf_hooks.pre_hooks.features/0/0/conv2d/0__1.0": {
"input_low": [
[
[
[
-1.0
]
]
],
[
[
[
-1.0
]
]
]
],
"input_high": [
[
[
[
1.0
]
]
],
[
[
[
1.0
]
]
]
]
},
"__nncf_hooks.pre_hooks.features/1/0/conv2d/0__1.0": {
"input_low": [
[
[
[
-1.0
]
]
]
],
"input_high": [
[
[
[
1.0
]
]
]
]
},
"__nncf_hooks.post_hooks.x__0.0": {
"input_low": [
0.0
],
"input_high": [
0.9970665574073792
]
},
"__nncf_hooks.post_hooks.features/0/0/conv2d/0__0.0": {
"input_low": [
-3.8243322372436523
],
"input_high": [
3.794454574584961
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"__nncf_hooks.pre_hooks.features/0/0/conv2d/0__1.0": {
"input_low": [
[
[
[
-2.0
]
]
],
[
[
[
-2.0
]
]
]
],
"input_high": [
[
[
[
2.0
]
]
],
[
[
[
2.0
]
]
]
]
},
"__nncf_hooks.pre_hooks.features/1/0/conv2d/0__1.0": {
"input_low": [
[
[
[
-2.0
]
]
]
],
"input_high": [
[
[
[
2.0
]
]
]
]
},
"__nncf_hooks.post_hooks.x__0.0": {
"input_low": [
0.0
],
"input_high": [
0.9970665574073792
]
},
"__nncf_hooks.post_hooks.features/0/0/conv2d/0__0.0": {
"input_low": [
-3.8243322372436523
],
"input_high": [
3.794454574584961
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"__nncf_hooks.pre_hooks.features/0/0/conv2d/0__1.0": {
"input_low": [
[
[
[
-2.0
]
]
],
[
[
[
-2.0
]
]
]
],
"input_high": [
[
[
[
2.0
]
]
],
[
[
[
2.0
]
]
]
]
},
"__nncf_hooks.pre_hooks.features/1/0/conv2d/0__1.0": {
"input_low": [
[
[
[
-1.0
]
]
]
],
"input_high": [
[
[
[
1.0
]
]
]
]
},
"__nncf_hooks.post_hooks.x__0.0": {
"input_low": [
0.0
],
"input_high": [
0.9970665574073792
]
},
"__nncf_hooks.post_hooks.features/0/0/conv2d/0__0.0": {
"input_low": [
-3.8243322372436523
],
"input_high": [
3.794454574584961
]
}
}
Loading