-
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
Matmul_v2 broadcasting mkldnn fuse passes #36461
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! |
Hi @lidanqing-intel @jakpiase , I am wondering whether we can add a new pass to map matmul_v2 to v1 to reduce the modification? |
Hi, @baoachun, do mean adding a pass that will convert "matmul_v1" into "matmul_v2"? If yes, then I think that it can be done, but only if alpha(output scale) parameter would be equal to 1.0, otherwise matmul_v2 may not be compatible since it does not have that parameter. This additional pass will be added by your team, or it should be added by mine? Does it have the same deadline as adding other fuses(29.10.2021)? |
Hi, @jakpiase, my colleague will submit the pass of v2 mapping v1 today, but it only supports scenes without broadcast. Scenes that cannot be mapped by broadcast are not necessary to be resolved before the deadline. We need to ensure that the model in this mapping scenario can be inferred successfully and the related passes can work normally. In addition, yesterday PMO requested that cherry-pick codes be completely disallowed starting on the 25th. Thank you for your hard support! |
@jakpiase I will ask the leader’s opinion and reply to you on Monday.
the wrong ones are:
|
@baoachun Ok, I'll try to find out why is it crashing in that PR |
Hi @jakpiase , I really appreciate it! |
Maybe you can use something like that instead of using GetAttrIfExists() method, since GetAttrIfExists() will return uninitialized bool if there is no "use_mkldnn" attribute in matmul_v2 op |
Got it, we have made changes. |
Hi @baoachun, CI-Framework still has some errors. X tensor batch size = "-1", but Y tensor has batch size = "1", and that's matmul_v1, so there can't be any broadcasting, so probably setting proper X tensor dims should fix that |
Hi @jakpiase, I have figured out the problem, but there has been ouput diff after I modified the matmul v1 op. Chould you please help me see where the problem might be? Thanks a lot. |
@baoachun Please share some models with broadcasting so that we could test with models |
Hi @lidanqing-intel @jczaja, this AR has a higher priority, and ends on the 29th. Thank you very much!
The text was updated successfully, but these errors were encountered: