aclprofModelSubscribe
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Subscribes to basic operator information, including the operator name, operator type, and operator execution time.
Prototype
aclError aclprofModelSubscribe(uint32_t modelId, const aclprofSubscribeConfig *profSubscribeConfig)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
modelId |
Input |
ID of the model to be subscribed to. A successful aclmdlLoadFromFile, aclmdlLoadFromMem, aclmdlLoadFromFileWithMem, or aclmdlLoadFromMemWithMem call returns a model ID. |
profSubscribeConfig |
Input |
Configuration information to be subscribed to. Call aclprofCreateSubscribeConfig to create data of the aclprofSubscribeConfig type in advance. |
Returns
0 on success; else, failure. For details, see aclError.
Restrictions
This API must be used in pair with aclprofModelUnSubscribe.