[GPU] debug_config bug fix of not accepting multiple strings (#7754)

It receives space-separated parameter. Currently, only first argument is
received in case of string argument.
This commit is contained in:
Mingyu Kim 2021-09-30 16:10:50 +09:00 committed by GitHub
parent a13b934622
commit fbed7e13a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -57,6 +57,11 @@ T convert_to(const std::string &str) {
return res; return res;
} }
template <>
std::string convert_to(const std::string &str) {
return str;
}
template<typename T> template<typename T>
void get_debug_env_var(const std::string &var, T &val, std::vector<std::string> allowed_option_prefixes) { void get_debug_env_var(const std::string &var, T &val, std::vector<std::string> allowed_option_prefixes) {
bool found = false; bool found = false;

View File

@ -2398,7 +2398,6 @@ INSTANTIATE_TEST_SUITE_P(DISABLED_REORDER,
#ifdef ENABLE_ONEDNN_FOR_GPU #ifdef ENABLE_ONEDNN_FOR_GPU
TEST(reorder_onednn_gpu, basic_convert_int8) { TEST(reorder_onednn_gpu, basic_convert_int8) {
auto& engine = get_onednn_test_engine(); auto& engine = get_onednn_test_engine();
layout in_layout = { type_to_data_type<float>::value, format::byxf, { 1, 1, 3, 3 } }; layout in_layout = { type_to_data_type<float>::value, format::byxf, { 1, 1, 3, 3 } };
layout byte_layout = { type_to_data_type<int8_t>::value, format::bfyx, { 1, 1, 3, 3 } }; layout byte_layout = { type_to_data_type<int8_t>::value, format::bfyx, { 1, 1, 3, 3 } };