Skip to content

Commit

Permalink
Enable constant methods in cadence export.
Browse files Browse the repository at this point in the history
Differential Revision: D68637824

Pull Request resolved: #7948
  • Loading branch information
hsharma35 authored Jan 25, 2025
1 parent 25395b9 commit e78ed83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backends/cadence/aot/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def export_to_edge(
model: torch.nn.Module,
inputs: tuple[object, ...],
dump_graphs: bool = False,
constant_methods: Optional[dict[str, object]] = None,
) -> EdgeProgramManager:
assert isinstance(model, torch.nn.Module), "model should be an nn.Module"

Expand All @@ -195,6 +196,7 @@ def export_to_edge(
torch.ops.aten.angle.default,
],
),
constant_methods=constant_methods,
)

if dump_graphs:
Expand Down

0 comments on commit e78ed83

Please sign in to comment.