diff --git a/docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md b/docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md index 2956376f9c5..e2375a652d4 100644 --- a/docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md +++ b/docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md @@ -244,6 +244,8 @@ This error occurs when an incorrect combination of the `--input` and `--input_sh When using the `PORT:NODE` notation for the `--input` command line argument and `PORT` > 0, you should specify `--input_shape` for this input. This is a limitation of the current Model Optimizer implementation. +**NOTE**: It is no longer relevant message since the limitation on input port index for model truncation has been resolved. + #### 32. What does the message "No or multiple placeholders in the model, but only one shape is provided, cannot set it" mean? Looks like you have provided only one shape for the placeholder, however there are no or multiple inputs in the model. Please, make sure that you have provided correct data for placeholder nodes. diff --git a/tools/mo/openvino/tools/mo/front/extractor.py b/tools/mo/openvino/tools/mo/front/extractor.py index 7dc9387011b..1ff31105f2a 100644 --- a/tools/mo/openvino/tools/mo/front/extractor.py +++ b/tools/mo/openvino/tools/mo/front/extractor.py @@ -962,12 +962,6 @@ def add_input_ops_helper_before_infer_input_port(graph: Graph, smart_node: Node, def add_input_ops_helper_after_infer_input_port(graph: Graph, smart_node: Node, port:int, node_id: str, inputs: list, edges_to_remove: list): - n_inputs = len(smart_node.in_nodes()) - if n_inputs > 1 and port is not None and port != 0: - raise Error( - 'Input port > 0 in --input is not supported if --input_shape is not provided. Node:' - ' "{}". Omit port index and all input ports will be replaced by placeholders. ' - 'Or provide --input_shape. ' + refer_to_faq_msg(31), node_id) port = port if port is not None else 0 in_node = smart_node.in_node(port) shape = in_node['shape'] if 'shape' in in_node else None