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

[RELAY][PASS] detect depthwise conv2d in mac_count pass #3083

Merged
merged 7 commits into from
May 14, 2019

Conversation

eqy
Copy link
Contributor

@eqy eqy commented Apr 23, 2019

before mobilenet1.0 was counted as over 4G MACs, now it is ~500M MACs.

@eqy eqy requested review from jroesch and yidawang April 23, 2019 23:46
Copy link
Member

@merrymercy merrymercy left a 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.

@tqchen tqchen added the status: need update need update based on feedbacks label Apr 25, 2019
@eqy eqy added status: need review and removed status: need update need update based on feedbacks labels Apr 29, 2019
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) {
Copy link
Member

@merrymercy merrymercy May 5, 2019

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

@tqchen
Copy link
Member

tqchen commented May 13, 2019

Any updates? Is the general group conv2d supported? We should probably try to get it merged before it start to bitrot

@merrymercy merrymercy merged commit 605b5e6 into apache:master May 14, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request Jun 26, 2019
* check in

* use groups

* CHECK_EQ

* trigger CI

* Update mac_count.cc

* trigger CI

* trigger CI
wweic pushed a commit to neo-ai/tvm that referenced this pull request Jun 27, 2019
* check in

* use groups

* CHECK_EQ

* trigger CI

* Update mac_count.cc

* trigger CI

* trigger CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants