Fix ngraph core opset createinsensitive (#2961)

* Fix: ITT_INCLUDE_DIR was not correctly detected

* Map find result not compared with the right iterator.

* Force recheck
This commit is contained in:
Emmanuel Attia
2020-11-05 11:42:09 +01:00
committed by GitHub
parent e758d2b325
commit 71bb8135b9

View File

@@ -39,7 +39,7 @@ ngraph::Node* ngraph::OpSet::create(const std::string& name) const
ngraph::Node* ngraph::OpSet::create_insensitive(const std::string& name) const
{
auto type_info_it = m_case_insensitive_type_info_map.find(to_upper_name(name));
return type_info_it == m_name_type_info_map.end()
return type_info_it == m_case_insensitive_type_info_map.end()
? nullptr
: m_factory_registry.create(type_info_it->second);
}