---
title: DynamicCompileStaticFlag
description: "用于标识该算子实现是否支持入图时的静态Shape编译。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendcopapi/atlasascendc_api_07_0991.html
sourcePath: /source/zh/canncommercial/900/API/ascendcopapi/atlasascendc_api_07_0991.html
indexId: 67483595aa5a5e323ab455b6956e827b6da48af1d03890c4efe376b02e15d42476
---
# DynamicCompileStaticFlag

#### 功能说明

用于标识该算子实现是否支持入图时的静态Shape编译。


#### 函数原型

```
OpAICoreConfig &DynamicCompileStaticFlag(bool flag)
```


#### 参数说明

| 参数 | 输入/输出 | 说明 |
| --- | --- | --- |
| flag | 输入 | 用户开发的自定义算子，如果需要支持入图时静态Shape场景下的编译，需要配置该选项为true，否则配置为false。 |


#### 返回值说明

OpAICoreConfig类，请参考OpAICoreConfig。


#### 约束说明

无
