---
title: E10402 Invalid_Argument_Operator_Input_Buffer
description: "报错格式如下，占位符%s的含义依次为index、期望buffer大小、实际buffer大小："
url: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/latest/maintenref/troubleshooting/atlaserrorcode_15_0056.html
sourcePath: /source/zh/CANNCommunityEdition/920beta1/maintenref/troubleshooting/atlaserrorcode_15_0056.html
indexId: 8839ebd00ae1795bc9b25fa00880e7d88e14fb54c1b41f667a28dbd8cd21eaf495
---
# E10402 Invalid_Argument_Operator_Input_Buffer

#### 错误信息

报错格式如下，占位符%s的含义依次为index、期望buffer大小、实际buffer大小：

```
Input indexed %s requires a %s buffer, but %s aligned buffer is allocated.
```


报错示例如下：

```
Input indexed 1 requires a 200 buffer, but 100 aligned buffer is allocated.
```


#### 解决方法

检查数据类型、维度和Shape是否设置正确，具体请参见官方文档中的aclGetTensorDescSize接口说明。
