-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
The output format of mkldnn conv is wrong when data_format is NHWC #38126
Comments
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~ Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day! |
@jczaja Please comment on this issue. Otherwise that disabling PR will be merged. |
@baoachun I implemented NHWC support for oneDNN kernels in PaddlePaddle so I can offer some insight. Paddle/paddle/fluid/framework/data_layout_transform.cc Lines 189 to 191 in 21b7ed3
Some more information (design doc on NHWC in oneDNN kernels): |
Hi @jczaja , at present, a user encounters the inference error problem, which is caused because conv2d does not support NHWC format. |
@baoachun Thanks for more information. I'm planning to work on this issue right after I finish current issue so I will start work on NHWC next week. |
@baoachun Just to let You know that I started to investigate this issue. Reproduction was achieved. Problem seems to be that oneDNN elementwise_add (X,Y) kernel with Y being broadcasted , does not work properly for NHWC situation. I will write some more when I get more details. |
@baoachun Situation is as follows. There are two problems encountered:
|
* - 38126 potential fix * - fix * - build fix * - another candidate fix * - compilation fix * - another fix * - Fix to activation of NHWC being first oneDNN op in chain on oneDNN ops * - compilation fix * - added NHWC reotating for elementwise being first op * - compilation fix * - compilation fix * - Added UT * - cosmetic fixes
Hi @jczaja , most of the UTs have passed, except for Paddle/paddle/fluid/operators/conv_op.cc Line 60 in 0d46a10
|
Hi @jczaja, I have removed most of the skip settings for NHWC, pr is here: #39551, but the |
@baoachun Ok, so to reproduce this problem I should use enable NHWC in test_mkldnn_conv_elementwise_add_fuse_pass ? |
The issues reported here are fixed by #40049 . Please retest and let us now if all works for you |
@baoachun said PaddleHub reported failures after the PR merged. Hence please keep this issue open. More info will follow |
To summarize:
|
notes from 5/20 meeting: |
The problem can be reproduced according to this pr:#38107
Runing the following command to reproduce.
The text was updated successfully, but these errors were encountered: