File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/plugins/intel_cpu/src/nodes/common Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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]);
You can’t perform that action at this time.
0 commit comments