Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion examples/arm/aot_arm_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ def _load_internal_model(
model_name: str, example_inputs: Any
) -> Optional[Tuple[torch.nn.Module, Any]]:
"""Load a bundled example model from the internal `MODELS` mapping."""
logging.info(
"Loading internal models is deprecated. Use --model_name <FILE>.py/.pt "
"or a model from examples/models."
)

if model_name not in MODELS:
return None

Expand Down Expand Up @@ -442,7 +447,7 @@ def get_args():
"-m",
"--model_name",
required=True,
help=f"Model file .py/.pth/.pt, builtin model or a model from examples/models. Valid names: {set(list(MODELS.keys()) + list(MODEL_NAME_TO_MODEL.keys()))}",
help=f"Model file .py/.pth/.pt or a model from examples/models. Valid names: {set(MODEL_NAME_TO_MODEL.keys())}",
)
parser.add_argument(
"--model_input",
Expand Down
Loading