Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/an/general_fix_fp16' into an/gen…
Browse files Browse the repository at this point in the history
…eral_fix_fp16
  • Loading branch information
allnes committed Oct 17, 2023
2 parents 234b6b5 + 1c86852 commit 98c17bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plugins/intel_cpu/src/nodes/normalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,12 +796,10 @@ void NormalizeL2::initSupportedPrimitiveDescriptors() {
inputPrecision = outputPrecision = Precision::BF16;
}

if (one_of(Precision::FP16, inputPrecision, outputPrecision) &&
(mayiuse(cpu::x64::avx512_core) || mayiuse(cpu::x64::avx2) || mayiuse(cpu::x64::sse41))) {
if (one_of(Precision::FP16, inputPrecision, outputPrecision) && mayiuse(cpu::x64::sse41)) {
inputPrecision = outputPrecision = Precision::FP32;
}


if (!one_of(inputPrecision, Precision::FP32, Precision::BF16, Precision::FP16, Precision::I8, Precision::U8)) {
THROW_ERROR << "has unsupported input precision: " << inputPrecision;
}
Expand Down

0 comments on commit 98c17bf

Please sign in to comment.