Function: model_unsubscribe

Applicable Products

  • Ascend 950PR&950DT products: Supported
  • Atlas A3 products: Supported
  • Atlas A2 products: Supported
  • Atlas 200I/500 A2 inference products: Supported
  • Atlas inference products: Supported
  • Atlas training products: Supported

Function

Unsubscribes from basic operator information, including the operator name, operator type, and operator execution duration, in network scenarios.

Prototype

  • C Prototype

    aclError aclprofModelUnSubscribe(uint32_t modelId)
    
  • Python Function

    ret = acl.prof.model_unsubscribe(model_id)
    

Parameters

Parameter Description
model_id Int, ID of the model that is subscribed to.

Return Values

Return Value Description
ret Int, error code.
0: success
If other values are returned, the operation fails.

Constraints

This API must be used in pair with acl.prof.model_subscribe.