Skip to content

Commit

Permalink
Verify the exported program after passes
Browse files Browse the repository at this point in the history
Summary: There are some passes running on ExportedProgram, but we didn't verify them immediately and it may cause failure in the later downstream work.

Differential Revision: D58212409
  • Loading branch information
cccclai authored and facebook-github-bot committed Jun 5, 2024
1 parent 7bb2c58 commit 4db5853
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backends/qualcomm/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def _transform(edge_program: ExportedProgram) -> None:
AnnotateDecomposed(edge_program)(graph_module)
FoldQDQ()(graph_module)
LayoutTransform(edge_program)(graph_module)
# Ensure the exported_program is still valid, ideally we want to verify for each pass
edge_program._validate()


def capture_program(
Expand Down

0 comments on commit 4db5853

Please sign in to comment.