---
title: E10031 Invalid_Argument_Tensor_Input_Shape
description: "--dynamic_batch_size is included, but none of the nodes specified in --input_shape has a batch size equaling -1."
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/troubleshooting/atlaserrorcode_15_0030.html
sourcePath: /source/zh/canncommercial/900/maintenref/troubleshooting/atlaserrorcode_15_0030.html
indexId: da2d9cd35b1fcc5c7d4c24387c69f673eff00ef515c19637de465b2e0bb04eb184
---
# E10031 Invalid_Argument_Tensor_Input_Shape

#### Symptom

--dynamic_batch_size is included, but none of the nodes specified in --input_shape has a batch size equaling -1.


#### Possible Cause

As --dynamic_batch_size is included, ensure that at least one of the nodes specified in --input_shape has a batch size equaling -1.


#### Solution

1. In static shape scenarios, remove the --dynamic_batch_size option from your command line.
2. In dynamic shape scenarios, set the corresponding axis of the dynamic-shape input in --input_shape to -1.
