Function: model_subscribe
|
C Prototype |
aclError aclprofModelSubscribe(uint32_t modelId, const aclprofSubscribeConfig *profSubscribeConfig) |
|---|---|
|
Python Function |
ret = acl.prof.model_subscribe(model_id, subscribe_config) |
|
Function Usage |
Subscribes to basic operator information, including the operator name, operator type, and operator execution time. |
|
Input Description |
model_id: int, ID of the model to be subscribed to. acl.mdl.load_from_file, acl.mdl.load_from_mem, acl.mdl.load_from_file_with_mem, or acl.mdl.load_from_mem_with_mem is called to load the model. After the model is successfully loaded, the model ID is returned. subscribe_config: int, configuration to be subscribed to. Call acl.prof.create_subscribe_config to create configuration data. |
|
Return Value |
ret: int, error code.
|
|
Restrictions |
This API must be used in pair with acl.prof.model_unsubscribe. |
|
Reference |