Skip to content

Commit

Permalink
executorch/extension/android_test (pytorch#7394)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#7394

Reviewed By: avikchaudhuri, ydwu4

Differential Revision: D67383536
  • Loading branch information
gmagogsfm authored and facebook-github-bot committed Dec 19, 2024
1 parent c337bef commit 0d750a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/android_test/add_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def forward(self, x: torch.Tensor, y: torch.Tensor):


# 1. torch.export: Defines the program with the ATen operator set.
aten_dialect = export(Add(), (torch.ones(1), torch.ones(1)))
aten_dialect = export(Add(), (torch.ones(1), torch.ones(1)), strict=True)

# 2. to_edge: Make optimizations for Edge devices
edge_program = to_edge(aten_dialect)
Expand Down

0 comments on commit 0d750a3

Please sign in to comment.