---
title: 函数：unregister_compile_func
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/aclpythondevg_01_0816.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/aclpythondevg_01_0816.html
indexId: 60ac1c114fe71091766774037d6e2a1c6ce16614f9536f6a6af45f4d52bdb05c75
---
# 函数：unregister_compile_func

#### 产品支持情况

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


#### 功能说明

动态Shape场景下，取消注册算子选择器。


#### 函数原型

- C函数原型
  1 aclError aclopUnregisterCompileFunc(const char *opType)

- python函数
  1 ret = acl.op.unregister_compile_func(op_type)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| op\_type | str，算子类型。 |


#### 返回值说明

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