Skip to content

Commit 772d0f4

Browse files
committed
Fix variable number of inputs in mps_example.py
1 parent 28418dc commit 772d0f4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/apple/mps/executor_runner/mps_executor_runner.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,11 @@ MemoryManager memory_manager(
481481
strstr(model_path, "emformer_transcribe") ||
482482
strstr(model_path, "emformer_join") ||
483483
strstr(model_path, "edsr") ||
484+
strstr(model_path, "llama2") ||
484485
strstr(model_path, "ic3") ||
485486
strstr(model_path, "ic4")) {
486487
atol = 1e-04;
487-
}
488+
}
488489
status = torch::executor::util::VerifyResultWithBundledExpectedOutput(
489490
*method,
490491
file_data->data(),

examples/apple/mps/scripts/mps_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def __init__(self):
7575
super().__init__()
7676
self.mps_module = lowered_module
7777

78-
def forward(self, input_args):
79-
return self.mps_module(input_args)
78+
def forward(self, *input_args):
79+
return self.mps_module(*input_args)
8080

8181
executorch_program = (
8282
exir.capture(

0 commit comments

Comments
 (0)