---
title: 校准过程中提示"IFMR node. Name:'layer_ifmr_op' Status Message: std::bad_alloc"信息-昇腾社区
description: 训练后量化校准过程中，对某层进行量化，提示内存错误"IFMR node. Name:'layer_ifmr_op' Status Message: std::bad_alloc "。
keywords: IFMR ;layer_ifmr_op;bad_alloc
url: https://www.hiascend.com/document/caselibrary/detail/atlasamct_16_0359
section: (其他)
---

# 校准过程中提示"IFMR node. Name:'layer_ifmr_op' Status Message: std::bad_alloc"信息-昇腾社区

URL: https://www.hiascend.com/document/caselibrary/detail/atlasamct_16_0359
描述: 训练后量化校准过程中，对某层进行量化，提示内存错误"IFMR node. Name:'layer_ifmr_op' Status Message: std::bad_alloc "。
关键词: IFMR ;layer_ifmr_op;bad_alloc

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

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

校准过程中提示"IFMR node. Name:'layer_ifmr_op' Status Message: std::bad_alloc"信息

校准过程中提示"IFMR node. Name:'layer_ifmr_op' Status Message: std::bad_alloc"信息

2025/04/17

485

问题信息

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

#### 问题现象描述

训练后量化校准过程中，对某层进行量化，提示内存错误"IFMR node. Name:'layer_ifmr_op' Status Message: std::bad_alloc "。

#### 原因分析

相较于环境中的CPU或者GPU存储，量化时使用的数据量过大，导致内存错误。

#### 解决措施

1. 减少校准所用的数据量，即降低batch_size或者batch_num，可直接使用batch_size * batch_num的最小值尝试量化。
2. 如果网络中仅个别层的featuremap很大，出现内存错误，则可以跳过该层，不对其进行量化。

本页内容

- 问题信息
- 问题现象描述
- 原因分析
- 解决措施
