serve icon indicating copy to clipboard operation
serve copied to clipboard

Model archive utility is not working with handler or handler:entry_pnt_func name

Open codinnvrends opened this issue 6 years ago • 0 comments

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-

  1. --handler <name_of_handler>:<name_of_entry_point_function> or handle
  2. --handler <name_of_handler>

Context

This is in response to issue #463

codinnvrends avatar Jun 17 '20 17:06 codinnvrends