Article ID: 000090955 Content Type: Error Messages Last Reviewed: 11/13/2023

Failed to convert TensorFlow* model with multiple inputs into Intermediate Representation (IR) format

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Correct command for multiple inputs topology in Model Optimizer.

Description
  • Converted a TensorFlow* custom model into IR format:

    mo --data_type FP16 --saved_model_dir <MODEL_PATH> --input_shape (1,150,150,3)

  • Received error:

    [ ERROR ] Exception occurred during running replacer "REPLACEMENT_ID" (<class 'openvino.tools.mo.front.user_data_repack.UserDataRepack&#>39;>): Original placeholders: 'serving_default_input_1, saver_filename'. Freezing was requested for ''. --input_shape was provided without --input. Can not deduce which node shape to override

Resolution

Model Optimizer command to convert model with multiple inputs:

mo --data_type FP16 --saved_model_dir <MODEL_PATH> --input_shape (1..,150,150,3)

Additional information

Related Products

This article applies to 1 products