Skip to content

Commit 0390a5c

Browse files
Support Toy models in aot_neutron_compile via --model_name
Toy models can now be selected in `aot_neutron_compile.py` using the `--model_name` flag. This was achieved with a minor change to `get_model_and_inputs_from_name`, ensuring the models are correctly retrieved from `MODEL_NAME_TO_MODEL`.
1 parent 6bd2c2d commit 0390a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/nxp/aot_neutron_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_model_and_inputs_from_name(model_name: str):
7575
logging.warning(
7676
"Using a model from examples/models not all of these are currently supported"
7777
)
78-
model, example_inputs, _ = EagerModelFactory.create_model(*MODEL_NAME_TO_MODEL[model_name])
78+
model, example_inputs, _, _ = EagerModelFactory.create_model(*MODEL_NAME_TO_MODEL[model_name])
7979
else:
8080
raise RuntimeError(
8181
f"Model '{model_name}' is not a valid name. Use --help for a list of available models."

0 commit comments

Comments
 (0)