Fix issue with constants having inputs in TF FE (#10393)
This commit is contained in:
parent
abeb910ce2
commit
5cadee20eb
@ -108,6 +108,10 @@ void FrontEnd::translate_graph(const ov::frontend::InputModel::Ptr& model,
|
||||
// prepare a list of OV node inputs for each node
|
||||
ov::OutputVector ng_inputs;
|
||||
for (size_t input_port_idx = 0; input_port_idx < operation_decoder->get_input_size(); ++input_port_idx) {
|
||||
// TODO: Implement more general approach. Skipping Constants that have input edges
|
||||
if (operation_decoder->get_op_type() == "Const") {
|
||||
break;
|
||||
}
|
||||
std::string producer_name;
|
||||
size_t producer_port_idx;
|
||||
try {
|
||||
@ -143,7 +147,7 @@ void FrontEnd::translate_graph(const ov::frontend::InputModel::Ptr& model,
|
||||
ng_inputs.push_back(input_outputs_vector.at(producer_port_idx));
|
||||
} else {
|
||||
FRONT_END_GENERAL_CHECK(false,
|
||||
"No input is found for node \"" + operation_name + "\" by port" +
|
||||
"No input is found for node \"" + operation_name + "\" by port " +
|
||||
std::to_string(producer_port_idx));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user