Skip to content

fix(backend): inherit PassMgrBackend and raise RuntimeError on no-match#86

Open
xjtu-L wants to merge 1 commit intoPaddlePaddle:developfrom
xjtu-L:fix/pass-mgr-direct-multi-output
Open

fix(backend): inherit PassMgrBackend and raise RuntimeError on no-match#86
xjtu-L wants to merge 1 commit intoPaddlePaddle:developfrom
xjtu-L:fix/pass-mgr-direct-multi-output

Conversation

@xjtu-L
Copy link
Copy Markdown
Contributor

@xjtu-L xjtu-L commented May 6, 2026

  • Replace manual config/pass_manager construction with super().init(config), overriding get_passes() for FixedPatternReplacementPass
  • Raise RuntimeError when no passes modify the graph, preventing fallback to eager execution

@xjtu-L xjtu-L force-pushed the fix/pass-mgr-direct-multi-output branch from 91f7721 to cc2dd97 Compare May 6, 2026 13:55
PassMgrDirectBackend now inherits GraphCompilerBackend directly,
with its own dispatch infrastructure, pass loading, source validation,
and FixedPatternReplacementPass. This eliminates the coupling with
PassMgrBackend so changes to one backend don't affect the other.
@xjtu-L xjtu-L force-pushed the fix/pass-mgr-direct-multi-output branch from cc2dd97 to 2b39460 Compare May 6, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant