-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[RELAY][PASS] detect depthwise conv2d in mac_count pass #3083
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add the support for general group conv2d directly.
src/relay/pass/mac_count.cc
Outdated
int64_t count = input_channel * GetCartesianProd(output_tensor) * GetCartesianProd(kernel_size); | ||
<< "The dimension of the output tensor in Conv 2D should be 4 or 5."; | ||
int64_t count = GetCartesianProd(output_tensor) * GetCartesianProd(kernel_size); | ||
if (!depthwise) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this. This branch is also true for depthwise conv2d
Any updates? Is the general group conv2d supported? We should probably try to get it merged before it start to bitrot |
* check in * use groups * CHECK_EQ * trigger CI * Update mac_count.cc * trigger CI * trigger CI
* check in * use groups * CHECK_EQ * trigger CI * Update mac_count.cc * trigger CI * trigger CI
before mobilenet1.0 was counted as over 4G MACs, now it is ~500M MACs.