Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pass_bench/torch/backend/pass_mgr_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,5 +517,10 @@ def forward(self, *args, **kwargs):
self.__dict__['forward'] = gm.forward
# Release dynamo-compiled object — no longer needed.
del self._compiled
else:
# Backend raised RuntimeError (no pass matched), dynamo fell back
# to eager. Re-raise so test framework treats this as failed,
# consistent with pass_mgr behavior.
raise RuntimeError("[PassMgrDirect] No passes modified the graph.")

return result