Skip to content

Fix order of mkldnn passes#16448

Closed
wojtuss wants to merge 1 commit intoPaddlePaddle:developfrom
wojtuss:wojtuss/fix-passes-order
Closed

Fix order of mkldnn passes#16448
wojtuss wants to merge 1 commit intoPaddlePaddle:developfrom
wojtuss:wojtuss/fix-passes-order

Conversation

@wojtuss
Copy link

@wojtuss wojtuss commented Mar 25, 2019

This patch sets the mkldnn passes in correct order.
With the previous order the relu op was not fused in ResNet50 model.

test=develop

@luotao1
Copy link
Contributor

luotao1 commented Mar 26, 2019

Does this PR solve #16399 (comment)?

@bingyanghuang
Copy link
Contributor

Does this PR solve #16399 (comment)?

@sfraczek What do you think about this fix?

@wojtuss
Copy link
Author

wojtuss commented Mar 26, 2019

Sorry, it seems it is not working well in all cases.

@wojtuss wojtuss closed this Mar 26, 2019
@sfraczek
Copy link

Probably one problem is that "mkldnn depthwise conv pass" runs after "conv bn fuse pass" so the depthwise convolutions are not replaced by regular convolution and cannot be fused with batch norm.

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.

4 participants