1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
5 #include "iml_type_mapper.h"
7 using namespace MKLDNNPlugin;
9 impl_desc_type MKLDNNPlugin::parse_impl_name(std::string impl_desc_name) {
10 impl_desc_type res = impl_desc_type::unknown;
12 #define SEARCH_WORD(_wrd) if (impl_desc_name.find(#_wrd) != std::string::npos) \
13 res = static_cast<impl_desc_type>(res | impl_desc_type::_wrd);
26 if ((res & impl_desc_type::avx2) != impl_desc_type::avx2 &&
27 (res & impl_desc_type::avx512) != impl_desc_type::avx512)
31 #define SEARCH_WORD_2(_wrd, _key) if (impl_desc_name.find(#_wrd) != std::string::npos) \
32 res = static_cast<impl_desc_type>(res | impl_desc_type::_key);
34 SEARCH_WORD_2(nchw, ref);
35 SEARCH_WORD_2(ncdhw, ref);
36 SEARCH_WORD_2(wino, winograd);