serve
serve copied to clipboard
Model archive utility is not working with handler or handler:entry_pnt_func name
In the following command --handler has restricted to *.py file only.
torch-model-archiver --model-name <model-name> --version <model_version_number> --model-file <path_to_model_architecture_file> --serialized-file <path_to_state_dict_file> --extra-files <path_to_index_to_name_json_file> --handler model_handler:handle --export-path <output-dir> --model-path <model_dir> --runtime python3
What is allowed today in handler -
--handler <name_of_handler>.py
What is expected apart from py file above-
--handler <name_of_handler>:<name_of_entry_point_function> or handle--handler <name_of_handler>
Context
This is in response to issue #463