Skip To Main Content
Support Knowledge Base

Encountered Inconsistent Shapes Error When Converting a TensorFlow* Model into Intermediate Representation (IR)

Content Type: Troubleshooting   |   Article ID: 000091303   |   Last Reviewed: 08/05/2022

Description

  • Converted a Tensorflow* model using the command: mo --input_model ../models/middlebury_d400.pb --input_shape [1,352,704,6]
  • Encountered error: Shapes {1,96,192,400} and {1,1,96,192} are not consistent.

Resolution

Run Model Optimizer with additional parameter, --disable_nhwc_to_nchw that disables the default translation from NHWC to NCHW during the TensorFlow* model conversion.

Additional information

Related Products

This article applies to 3 products.
Intel® Xeon Phi™ Processor Software OpenVINO™ toolkit Performance Libraries