Updated on 2022-03-13 GMT+08:00

getModelInfo

Macro for parsing a model file to obtain model information. This API is defined in ai_model_parser.h.

       /**
        * @ingroup hiai
        * @brief   Parse a model file to obtain model information.
        * @param [in] model_path   Model file path
        * @param [in] key   Model decryption key
        * @param [out] model_desc   Model information
        * @return Status   Running result
        */

        hiai::AIStatus getModelInfo(const std::string & model_path, 
            const std::string & key, AIModelDescription & model_desc);