---
title: Depth
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/udfrefc_23_00152.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/udfrefc_23_00152.html
indexId: 84aee5fc3943ce5a99d64ba2e8824fc267f5727b9413fe764d0fb28afd80276671
---
# Depth

#### 产品支持情况

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


#### 函数功能

获取队列的深度，即获取队列可容纳元素的最大个数。


#### 函数原型

```
virtual int32_t Depth() const = 0
```


#### 参数说明

无。


#### 返回值

队列深度。


#### 异常处理

无。


#### 约束说明

无。
