---
title: 函数：model_unsubscribe
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclpythondevg_01_0874.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclpythondevg_01_0874.html
indexId: 193413d1e318e898d9743ea0ae17edd8fb47afaed0541fd4645a07fe6003877671
---
# 函数：model_unsubscribe

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |


#### 功能说明

网络场景下，取消订阅算子的基本信息，包括算子名称、算子类型、算子执行耗时等。


#### 函数原型

- C函数原型
  1 aclError aclprofModelUnSubscribe(uint32_t modelId)

- python函数
  1 ret = acl.prof.model_unsubscribe(model_id)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| model\_id | int，已订阅的网络模型的ID。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| ret | int，错误码。 返回0表示成功。 返回其它值表示失败。 |


#### 约束说明

需要与acl.prof.model_subscribe接口配对使用。
