Delete check on port id in InputCut (#9796)

* delete refer_to_faq_msg(31)

* fix documentation

* fix documentation
This commit is contained in:
Eugeny Volosenkov 2022-01-25 17:41:08 +03:00 committed by GitHub
parent 0ecbe50bf5
commit b57f1b0fb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -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? <a name="question-32"></a>
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.

View File

@ -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