Skip to content

Commit

Permalink
[CPU]fix code style of config.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangYiIntel committed Dec 12, 2024
1 parent 8548773 commit 373d50d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/plugins/intel_cpu/src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,19 @@ void Config::readProperties(const ov::AnyMap& prop, const ModelType modelType) {
}
}
} catch (ov::Exception&) {

if (key == ov::hint::key_cache_precision.name()) {
OPENVINO_THROW("Wrong value ",
val.as<std::string>(),
" for property key ",
ov::hint::key_cache_precision.name(),
". Supported values: u8, bf16, f16, f32");
} else {
OPENVINO_THROW("Wrong value ",
val.as<std::string>(),
" for property key ",
ov::hint::value_cache_precision.name(),
". Supported values: u4, s4, u8, bf16, f16, f32");
}
}
} else if (key == ov::hint::key_cache_group_size.name() || key == ov::hint::value_cache_group_size.name()) {
try {
Expand Down

0 comments on commit 373d50d

Please sign in to comment.