Repository navigation
Conversation
PaddlePaddle 3.3+ PIR executor crashes on Windows CPU during inference with: NotImplementedError: (Unimplemented) ConvertPirAttribute2RuntimeAttribute not support [pir::ArrayAttribute<pir::DoubleAttribute>]. This happens because DEFAULT_ENABLE_MKLDNN=True, and paddlex enables oneDNN when the run_mode contains mkldnn. Disable mkldnn by default on win32 so out-of-the-box CPU inference works; other platforms keep the existing behavior, and users can still opt in with PaddleOCR(enable_mkldnn=True). Refs: PaddlePaddle/Paddle#77340 #17869
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PaddlePaddle 3.3+ crashes on Windows CPU during inference with:
NotImplementedError: (Unimplemented) ConvertPirAttribute2RuntimeAttribute not support [pir::ArrayAttribute<pir::DoubleAttribute>]This is the known oneDNN/PIR executor bug tracked upstream in PaddlePaddle/Paddle#77340 and PaddleOCR#17869.
Root cause
\DEFAULT_ENABLE_MKLDNN = True\ means on Windows CPU, paddlex enables oneDNN (mkldnn run_mode), which hits the broken PIR conversion path in PaddlePaddle 3.3+.
Fix
Set \DEFAULT_ENABLE_MKLDNN = False\ on \win32\ only. Other platforms keep the existing behavior, and users can still opt in explicitly with \PaddleOCR(enable_mkldnn=True).
Verification
Tested on Windows 11 / Python 3.13 / PaddlePaddle 3.3.1 / PaddleOCR 3.7.0: CPU inference now completes without the crash.
Related