---
title: aclprofRangePushEx
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclcppdevg_03_2143.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclcppdevg_03_2143.html
indexId: 9783aa450a5df0fbc9040fa16cbdb2b6d1843e1523131a67b92db9149680999168
---
# aclprofRangePushEx

#### 产品支持情况

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


#### 功能说明

在Torch场景下，msproftx上报Tensor信息。

调用此接口后，Profiling判断messageType为MESSAGE_TYPE_TENSOR_INFO时，缓存Tensor信息。


#### 函数原型

```
aclError aclprofRangePushEx(aclprofEventAttributes *attr)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| attr | 输入 | 需要上报的Tensor信息，结构体详见aclprofEventAttributes。 |


#### 返回值说明

返回0表示成功，返回其他值表示失败，请参见aclError。


#### 约束说明

与aclprofRangePop接口配对使用，先调用aclprofRangePushEx接口再调用aclprofRangePop接口。
