下载
中文
注册

E10040 Invalid --input_shape Argument

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 can not have '~'.

Possible Cause

In dynamic shape scenarios, when [--dynamic_batch_size], [--dynamic_image_size], or [--dynamic_dims] argument is included, the corresponding shape value in the input node must be set to -1 and can not 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.