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

fix flops calculation for grouped convolutions #964

Conversation

evgeniya-egupova
Copy link
Contributor

@evgeniya-egupova evgeniya-egupova commented Oct 4, 2021

TODO:

  • add test

@@ -306,9 +306,10 @@ def count_flops_and_weights_per_node(graph: NNCFGraph,
name = node.node_name
num_in_channels = input_channels.get(name, node.layer_attributes.in_channels)
num_out_channels = output_channels.get(name, node.layer_attributes.out_channels)
filters_per_channel = num_out_channels // node.layer_attributes.groups
Copy link
Contributor

Choose a reason for hiding this comment

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

Test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A part of TODO list for today

@evgeniya-egupova evgeniya-egupova marked this pull request as ready for review October 7, 2021 09:22
@evgeniya-egupova evgeniya-egupova requested a review from a team October 7, 2021 09:22
@alexsu52 alexsu52 merged commit 9a161e5 into openvinotoolkit:develop Oct 8, 2021
vshampor pushed a commit that referenced this pull request Oct 11, 2021
- fix flops calculation for grouped convolutions
- add test with grouped convs
vshampor pushed a commit to vshampor/nncf that referenced this pull request Oct 12, 2021
- fix flops calculation for grouped convolutions
- add test with grouped convs
kshpv pushed a commit to kshpv/nncf that referenced this pull request Oct 11, 2022
- fix flops calculation for grouped convolutions
- add test with grouped convs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants