From cfcf4b38b14b22205efa9c98606e53da451fcc44 Mon Sep 17 00:00:00 2001 From: richagadgil Date: Tue, 28 Jan 2025 18:23:03 -0600 Subject: [PATCH] fix error --- src/targets/cpu/lowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/targets/cpu/lowering.cpp b/src/targets/cpu/lowering.cpp index 97186022713..2298b6fab9b 100644 --- a/src/targets/cpu/lowering.cpp +++ b/src/targets/cpu/lowering.cpp @@ -378,7 +378,7 @@ struct cpu_apply // skip lowering if input has fp8 as one of the inputs since oneDNN doesn't have fp8 // supported yet. if(std::any_of(it->inputs().begin(), it->inputs().end(), [](const auto& i) { - return contains(fp8_types{}.get(), i->get_shape().type()) or (i->get_shape().type() == shape::type_t::bf16_type) + return contains(fp8_types{}.get(), i->get_shape().type()) or (i->get_shape().type() == shape::type_t::bf16_type); })) continue; if(it->name() == "pow") @@ -391,7 +391,7 @@ struct cpu_apply // skip lowering if input has fp8 as one of the inputs since oneDNN doesn't have fp8 // supported yet. if(std::any_of(it->inputs().begin(), it->inputs().end(), [](const auto& i) { - return contains(fp8_types{}.get(), i->get_shape().type()) or (i->get_shape().type() == shape::type_t::bf16_type) + return contains(fp8_types{}.get(), i->get_shape().type()) or (i->get_shape().type() == shape::type_t::bf16_type); })) continue; if(it->name() == "pooling")