Fix issue with constants having inputs in TF FE (#10393)

This commit is contained in:
Maxim Vafin 2022-02-16 20:40:23 +03:00 committed by GitHub
parent abeb910ce2
commit 5cadee20eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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