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

[PIR] Fix issue of no op_info when enabling oneDNN #71426

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

LLee233
Copy link
Contributor

@LLee233 LLee233 commented Mar 5, 2025

PR Category

Inference

PR Types

Bug fixes

Description

When creating predictor by json file, there is lack of op_info registration for oneDNN, hence all oneDNN ops will be empty during fusion. Here we add registration for oneDNN ops accordingly to fix it.

Before:

RuntimeError: (PreconditionNotMet) op [] kernel output args (0) defs should equal op outputs (1)
  [Hint: Expected op_item->num_results() == output_defs.size(), but received op_item->num_results():1 != output_defs.size():0.] (at /paddle/Paddle/paddle/fluid/pir/transforms/pd_op_to_kernel_pass.cc:2487)

After:

I0305 15:13:39.561409 581663 analysis_predictor.cc:1101] ======= pir optimization completed =======

@LLee233 LLee233 added Intel contributor External developers labels Mar 5, 2025
Copy link

paddle-bot bot commented Mar 5, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@LLee233 LLee233 merged commit e29a10c into PaddlePaddle:develop Mar 6, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers Intel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants