下载
中文
注册

E10031 Invalid --input_shape Argument

Symptom

[--dynamic_batch_size] is included, but none of the nodes specified in [--input_shape] have 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.