nncf
nncf copied to clipboard
[API][Torch] Save/Load transformations
Changes
model.nncf.get_config
method and nncf.torch.load_from_config
function are presented
Reason for changes
To enable saving/loading NNCFNetwork transformations
Related tickets
129586
Tests
tests/torch/test_serialization.py
is updated
Codecov Report
Attention: Patch coverage is 0%
with 15 lines
in your changes are missing coverage. Please review.
Project coverage is 29.86%. Comparing base (
d507585
) to head (f8811da
).
Additional details and impacted files
@@ Coverage Diff @@
## develop #2659 +/- ##
============================================
- Coverage 89.25% 29.86% -59.39%
============================================
Files 495 495
Lines 48085 45986 -2099
============================================
- Hits 42917 13735 -29182
- Misses 5168 32251 +27083
Files | Coverage Δ | |
---|---|---|
nncf/torch/__init__.py | 0.00% <0.00%> (-89.48%) |
:arrow_down: |
nncf/torch/model_creation.py | 0.00% <0.00%> (-88.14%) |
:arrow_down: |
nncf/torch/nncf_network.py | 0.00% <0.00%> (-83.36%) |
:arrow_down: |
... and 332 files with indirect coverage changes
Flag | Coverage Δ | |
---|---|---|
COMMON | ? |
|
ONNX | ? |
|
OPENVINO | ? |
|
TENSORFLOW | 29.86% <0.00%> (-0.02%) |
:arrow_down: |
TORCH | ? |
Flags with carried forward coverage won't be shown. Click here to find out more.
Components | Coverage Δ | |
---|---|---|
common | 76.35% <ø> (-17.42%) |
:arrow_down: |
torch | 0.01% <0.00%> (-90.46%) |
:arrow_down: |
tensorflow | 93.74% <ø> (+1.00%) |
:arrow_up: |
onnx | 0.00% <ø> (-87.06%) |
:arrow_down: |
openvino | 0.00% <ø> (-90.09%) |
:arrow_down: |
ptq | 15.19% <ø> (-68.93%) |
:arrow_down: |