---
title: E10040 Invalid_Argument_Tensor_Input_Shape
description: "As the --dynamic_batch_size, --dynamic_image_size, or --dynamic_dims argument is included, the corresponding nodes specified in --input_shape must have -1 axes and cannot have '~'."
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/troubleshooting/atlaserrorcode_15_0038.html
sourcePath: /source/zh/canncommercial/900/maintenref/troubleshooting/atlaserrorcode_15_0038.html
indexId: 8da4e47f77153e3032ea16e55ac03a715444467ccf9de67a1ad105d52c4e8e1d84
---
# E10040 Invalid_Argument_Tensor_Input_Shape

#### Symptom

As the --dynamic_batch_size, --dynamic_image_size, or --dynamic_dims argument is included, the corresponding nodes specified in --input_shape must have -1 axes and cannot have '~'.


#### Solution

1. In static shape scenarios, remove the --dynamic_batch_size, --dynamic_image_size or --dynamic_dims option from your command line.
2. In dynamic multi-batch scenarios, set the corresponding axis of the dynamic-shape input in --input_shape to -1.
3. In dynamic shape scenarios, remove the --dynamic_batch_size, --dynamic_image_size or --dynamic_dims option from your command line and set --input_shape to -1 or n1~n2.
