Skip To Main Content
Support Knowledge Base

Unable To Convert Frozen Model Into Intermediate Representation (IR)

Content Type: Troubleshooting   |   Article ID: 000100573   |   Last Reviewed: 05/21/2025

Description

Converted a frozen_model to IR  using OpenVINO™ version 2021.4 with TensorFlow* version 2.4, but the conversion failed.

Resolution

To resolve the IR conversion failure, try the following steps:

  1. Set correct input shape.

    --input_shape "[1,X]" for static batch of 1
    --input_shape "[?,X]" for dynamic batch size

  2. Specify the model input and output names.

    --input <input_name>
    --output <output_name>

  3. Ensure the model is properly frozen and check tensor names with:

    print([tensor.name for tensor in frozen_func.inputs])
    print([tensor.name for tensor in frozen_func.outputs])

  4. Convert model to IR with --saved_model_dir parameter.

Additional information

OpenVINO™ 2021.4 has limited support for TensorFlow* 2.4. Upgrading to OpenVINO™ 2023.x may improve compatibility.

Related Products

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