Help Center/
Atlas 300 Application (Model 3000)/
Matrix API Reference/
Model Manager APIs (C++ Language)/
Data Types/
AIModelDescription
Updated on 2022-03-13 GMT+08:00
AIModelDescription
Serves as the input when the Init interface is called. For details, see ai_types.proto.
messAIPPDynaage AIModelDescription { string name = 1; // Model name, which can contain uppercase letters, lowercase letters, digits, underscores (_), and dots (.) int32 type = 2; // Model type. Currently, only the DAVINCI_OFFLINE_MODEL type is supported. The value is 0. // The model parsing capability has been added to the model manager. Therefore, it does not matter if this field is not set. To ensure forward compatibility, this field is reserved. string version = 3; // Model version int32 size = 4; // Model size string path = 5; // Model path, which can contain uppercase letters, lowercase letters, digits, and underscores (_). repeated string sub_path = 6; // Auxiliary model path, which is used when there are multiple model files, for example, Caffe online model // To be forward compatible, the "path" field is not changed to "repeated". Instead, the "sub_path" field is added. string key = 7; // Model key repeated string sub_key = 8; // Auxiliary model key, which is used when there are multiple model keys, for example, Caffe online model // To be forward compatible, the "key" field is not changed to "repeated". Instead, the "sub_key" field is added. enum Frequency { UNSET =0; LOW =1; MEDIUM =2; HIGH =3; } Frequency frequency = 9; enum DeviceType { NPU = 0; IPU = 1; MLU = 2; CPU = 3; NONE = 255; } DeviceType device_type = 10; enum Framework { OFFLINE =0; CAFFE =1; TENSORFLOW =2; } Framework framework = 11; bytes data = 100; // Model data repeated AITensorDescription inputs = 12; // Description of input tensors repeated AITensorDescription outputs = 13; // Description of output tensors };
Parent topic: Data Types
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot