---
title: 量化感知训练场景下，出现编译ERROR的解决方法-昇腾社区
description: if self.op[1] == 'depthwise':
keywords: mindspore;PIPELINE
url: https://www.hiascend.com/document/caselibrary/detail/atlasamct_16_0379
section: (其他)
---

# 量化感知训练场景下，出现编译ERROR的解决方法-昇腾社区

URL: https://www.hiascend.com/document/caselibrary/detail/atlasamct_16_0379
描述: if self.op[1] == 'depthwise':
关键词: mindspore;PIPELINE

昇腾文档 [了解详情](https://www.hiascend.com/document)

故障案例 [了解详情](https://www.hiascend.com/document/caselibrary)

量化感知训练场景下，出现编译ERROR的解决方法

量化感知训练场景下，出现编译ERROR的解决方法

2025/04/17

503

问题信息

| 问题来源 | 产品大类 | 产品子类 | 关键字 |
| --- | --- | --- | ---|
| 官方 | 应用开发 | CANN | mindspore、PIPELINE |

#### 问题描述

混合精度训练场景下，用户做量化感知训练，如果量化脚本正常运行，出现如下错误日志打印不影响功能。

```
[ERROR] PIPELINE(4802,python3):2020-05-05-22:08:32.343.536 [mindspore/ccsrc/pipeline/jit/pipeline.cc:636] Compile]
The function call stack (See file 'analyze_fail.dat' for details):
# 0 In file ../ops/cascade.py(125)
        if self.op[1] == 'depthwise':
    ^
# 1 In file ../ops/cascade.py(127)
        elif self.op[1] == 'conv':
    ^
# 2 In file ../ops/cascade.py(140)
                x = self.softmax(x)
                             ^
# 3 In file /usr/local/python3.x/lib/python3.x/site-packages/mindspore/nn/layer/conv.py(259)
        if self.has_bias:
# 4 In file /usr/local/python3.x/lib/python3.x/site-packages/mindspore/nn/layer/conv.py(261)
        return output
```

#### 可能原因

AMCT在保存量化感知训练模型阶段，会对原图进行编译，如果编译失败，会尝试将原图转成float32，再次进行编译。

#### 解决方法

用户无需关注上述错误打印，不影响业务功能。

本页内容

- 问题信息
- 问题描述
- 可能原因
- 解决方法
