load_model_info
- load_model_info(filename)
Loads and returns the model information as a JSON string from a binary model file (.hmm or .hmms).
This function parses the specified binary model file and extracts its metadata, returning a JSON-formatted string that describes the model information (e.g., version, inputs/outputs, tensor shapes, and other attributes).
Note
Ensure that the binary model file is a precise binary match to the one generated after compilation. Any modification may lead to undefined behavior or incorrect metadata being reported.
- Parameters:
filename (str) -- The file name and path of the binary model file.
- Returns:
model_info -- A JSON string containing the model information.
- Return type:
str