Fixed KW hits (#4638)
This commit is contained in:
parent
3cd5da0797
commit
4675a12c8f
@ -194,8 +194,10 @@ namespace ngraph
|
||||
|
||||
// Check execution condition
|
||||
bool body_exec_condition(false);
|
||||
body_outputs[special_ports.body_condition_output_idx]->read(
|
||||
&body_exec_condition, sizeof(bool));
|
||||
if (body_outputs.size() > special_ports.body_condition_output_idx &&
|
||||
body_outputs[special_ports.body_condition_output_idx])
|
||||
body_outputs[special_ports.body_condition_output_idx]->read(
|
||||
&body_exec_condition, sizeof(bool));
|
||||
if (!body_exec_condition)
|
||||
break;
|
||||
|
||||
|
@ -161,6 +161,8 @@ namespace ngraph
|
||||
for (size_t i = 0; i < concat_outputs.size(); ++i)
|
||||
{
|
||||
const auto& concat_desc = concat_outputs[i];
|
||||
if (!concat_desc)
|
||||
continue;
|
||||
auto shape =
|
||||
func->get_results().at(concat_desc->m_body_value_index)->get_shape();
|
||||
std::vector<Shape> shapes_to_concat(values_to_concat[i].size(), shape);
|
||||
|
Loading…
Reference in New Issue
Block a user