Skip to content
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

[ONNX] Fix adding output nodes in NNCFGraph #2538

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

kshpv
Copy link
Collaborator

@kshpv kshpv commented Feb 29, 2024

Changes

Do not add edges for the output node if it has no parents. E.g. output is put on the initializer.

Reason for changes

125248

Related tickets

125248

Tests

Checked on reproducer in the ticket

@kshpv kshpv requested a review from a team as a code owner February 29, 2024 14:52
@github-actions github-actions bot added the NNCF ONNX Pull requests that updates NNCF ONNX label Feb 29, 2024
Copy link

codecov bot commented Feb 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 13 lines in your changes are missing coverage. Please review.

Project coverage is 77.93%. Comparing base (0b407de) to head (fdc6897).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##           develop    #2538       +/-   ##
============================================
- Coverage    91.16%   77.93%   -13.23%     
============================================
  Files          494      494               
  Lines        45373    45374        +1     
============================================
- Hits         41363    35363     -6000     
- Misses        4010    10011     +6001     
Files Coverage Δ
nncf/onnx/graph/nncf_graph_builder.py 0.00% <0.00%> (-99.44%) ⬇️

... and 104 files with indirect coverage changes

Flag Coverage Δ
COMMON ?
ONNX ?
OPENVINO ?
TENSORFLOW 30.11% <0.00%> (-0.01%) ⬇️
TORCH 65.94% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
common 88.28% <ø> (-5.47%) ⬇️
torch 93.48% <ø> (-0.01%) ⬇️
tensorflow 93.74% <ø> (ø)
onnx 0.00% <0.00%> (-93.08%) ⬇️
openvino 25.73% <ø> (-68.44%) ⬇️
ptq 53.05% <ø> (-37.06%) ⬇️

Copy link
Contributor

@alexsu52 alexsu52 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please, add a test.

@kshpv
Copy link
Collaborator Author

kshpv commented Mar 5, 2024

LGTM. Please, add a test.

Added test

@kshpv kshpv requested a review from alexsu52 March 5, 2024 11:50
"0 Conv1" [id=0, type=Conv];
"1 nncf_model_input_0" [id=1, type=nncf_model_input];
"2 nncf_model_output_0" [id=2, type=nncf_model_output];
"3 nncf_model_output_1" [id=3, type=nncf_model_output];
Copy link
Contributor

@alexsu52 alexsu52 Mar 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the graph is not connected. Let's discuss offline what the impact on algorithms is.

Copy link
Collaborator Author

@kshpv kshpv Apr 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic was updated. Outputs with no parent node are not added to the NNCFGraph.

@kshpv kshpv requested a review from alexsu52 April 11, 2024 12:49
@kshpv
Copy link
Collaborator Author

kshpv commented Apr 15, 2024

E2E ONNX - 654 passed
ONNX Conformance - 356 passed

Copy link
Contributor

@alexsu52 alexsu52 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexsu52 alexsu52 merged commit 96eef35 into openvinotoolkit:develop Apr 18, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NNCF ONNX Pull requests that updates NNCF ONNX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants