Skip To Main Content
Support Knowledge Base

RuntimeError: Check ‘False’ Failed at Src/Core/Src/Runtime/ov_tensor.cpp:67: Dims and Format Are Inconsistent

Content Type: Error Messages   |   Article ID: 000095835   |   Last Reviewed: 07/31/2023

Environment

OpenVINO™ toolkit 2023.0.1 Python 3.8.10

Description

Trying to run my inference application in OpenVINO™ fails with the following error:
RuntimeError: Check 'false' failed at src/core/src/runtime/ov_tensor.cpp:67:
Dims and format are inconsistent.

Resolution

  • Verify the shape of the input data matches the input shape of the model.
  • Verify the layout of the input data matches the input layout of the model.

Additional information

The error comes from a shape mismatch between the input of your model and the input data being fed to the model. You need to perform pre-process on input data like image resizing and/or transposing to match the input shape and layout of the model.

Related Products

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