---
title: NumArrayAttr
description: "AI处理器与昇腾产品的对应关系，请参见《昇腾产品形态说明(https://www.hiascend.com/document/detail/zh/AscendFAQ/ProduTech/productform/hardwaredesc_0001.html)》"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/Profiling/mindieprofiling_0053.html
sourcePath: /source/zh/canncommercial/900/devaids/Profiling/mindieprofiling_0053.html
indexId: d645a5f8de94f457174cee70d47f0869a82ce84280c913d4836e3922a27531a073
---
# NumArrayAttr

#### 产品支持情况

AI处理器与昇腾产品的对应关系，请参见《昇腾产品形态说明(https://www.hiascend.com/document/detail/zh/AscendFAQ/ProduTech/productform/hardwaredesc_0001.html)》


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


针对 Atlas A2 训练系列产品 / Atlas A2 推理系列产品 ，当前仅支持该系列产品中的 Atlas 800I A2 推理产品 。

针对 Atlas 推理系列产品 ，当前仅支持该系列产品中的Atlas 300I Duo 推理卡+Atlas 800 推理服务器（型号：3000）。


#### 功能说明

添加数组属性，数组中仅支持数值。


#### 函数原型

```
template <Level levelAttr = level, typename T>
inline Profiler &NumArrayAttr(const char *attrName, const T &startIter, const T &endIter)
```


#### 参数说明


**表1 参数说明**

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| attrName | 输入 | 属性名。 |
| startIter | 输入 | 迭代器开始。 |
| endIter | 输入 | 迭代器结束。 |


#### 返回值说明

Profiler&返回当前对象，支持链式调用。
