Source: model_server/utils/model_info_utils.py#L0


create_model_info_proto

create_model_info_proto(list_of_model_info_dict)

Creates a ModelInfo proto

Arguments:

  • list_of_model_info_dict (list/tuple): A list containing model_info_dicts

Note:

model_info_dict contains the following keys:

{
  "name": "model name as string"
  "version": "version as string"
  "status": "status string"
  "misc": "string with miscellaneous info"
}

Returns:

ModelInfo proto


decode_model_info_proto

decode_model_info_proto(model_info_proto)

Decodes the model_info_proto created by create_model_info_proto

Arguments:

  • model_info_proto (ModelInfo proto): model_info_proto created by create_model_info_proto

Returns:

  • list_of_model_info_dict (list): A list containing model_info_dicts

Note:

model_info_dict contains the following keys:

{
  "name": "model name as string"
  "version": "version as string"
  "status": "status string"
  "misc": "string with miscellaneous info"
}