Skip to content

Commit 217d82e

Browse files
committed
change std::is_same_v to ov::intel_cpu::any_of_v
1 parent f943507 commit 217d82e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/intel_cpu/src/nodes/common/cpu_convert.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,8 @@ struct ConvertPrecision<std::tuple<src_t, dst_t>> {
550550
// Align with the behavior of ngraph ref and jit implementation. Conversion from f8e4m3-inf
551551
// to float should output float-inf instead of f8e4m3-max. Proper handling of special values
552552
// (nan, inf, overflow) has already been assured by the conversion process.
553-
if (std::is_same_v<src_t, ov::float8_e4m3> || std::is_same_v<src_t, ov::float8_e5m2> ||
554-
std::is_same_v<dst_t, ov::float8_e4m3> || std::is_same_v<dst_t, ov::float8_e5m2> ||
553+
if (ov::intel_cpu::any_of_v<src_t, ov::float8_e4m3, ov::float8_e5m2> ||
554+
ov::intel_cpu::any_of_v<dst_t, ov::float8_e4m3, ov::float8_e5m2> ||
555555
(std::is_integral_v<src_t> && std::is_integral_v<dst_t>)) {
556556
parallel_for(ctx.size, [&](size_t i) {
557557
dst[i] = static_cast<dst_t>(src[i]);

0 commit comments

Comments
 (0)