Skip to content

Commit

Permalink
corrected comments
Browse files Browse the repository at this point in the history
  • Loading branch information
allnes committed Oct 17, 2023
1 parent 090189d commit d5974e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/intel_cpu/src/nodes/normalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,12 @@ 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))) {
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 d5974e6

Please sign in to comment.