Skip to content

Commit 25dfa11

Browse files
committed
Skip test_llama_tosa_MI if no input parameters are given
1 parent afbf5e4 commit 25dfa11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backends/arm/test/models/test_llama.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def prepare_model(self):
6161
logging.warning(
6262
"Skipping Llama test because of lack of input. To run use --llama_inputs <.pt> <.json>"
6363
)
64-
return
64+
return None, None, None
6565

6666
assert os.path.isfile(checkpoint) and os.path.isfile(
6767
params_file
@@ -105,6 +105,9 @@ def prepare_model(self):
105105
def test_llama_tosa_MI(self):
106106
llama_model, llama_inputs, llama_meta = self.prepare_model()
107107

108+
if llama_model is None and llama_inputs is None and llama_meta is None:
109+
return
110+
108111
with torch.no_grad():
109112
(
110113
ArmTester(

0 commit comments

Comments
 (0)