Skip to content

Commit a94ec0a

Browse files
angelayipytorchmergebot
authored andcommitted
[aoti] Remove example inputs from aoti_compile_and_package (pytorch#144520)
Summary: The args were removed in pytorch#140991 Test Plan: CI Differential Revision: D67998954 Pull Request resolved: pytorch#144520 Approved by: https://github.com/yushangdi
1 parent 6b902e6 commit a94ec0a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

test/export/test_draft_export.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ def forward(self, x, y):
417417
with tempfile.NamedTemporaryFile(suffix=".pt2") as f:
418418
torch._inductor.aoti_compile_and_package(
419419
draft_ep,
420-
example_inputs,
421420
package_path=f.name,
422421
)
423422

test/inductor/test_minifier.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,7 @@ def forward(self, inp, *, k):
239239
ep = torch.export.export(
240240
model, example_inputs, kwargs
241241
)
242-
torch._inductor.aoti_compile_and_package(
243-
ep, example_inputs, kwargs
244-
)
242+
torch._inductor.aoti_compile_and_package(ep)
245243
"""
246244
return self._run_full_test(run_code, None, expected_error, isolate=True)
247245

0 commit comments

Comments
 (0)