diff --git a/src/plugins/intel_cpu/src/nodes/eltwise.cpp b/src/plugins/intel_cpu/src/nodes/eltwise.cpp index 6773b3fef05bbe..ef74db26eeb626 100644 --- a/src/plugins/intel_cpu/src/nodes/eltwise.cpp +++ b/src/plugins/intel_cpu/src/nodes/eltwise.cpp @@ -748,7 +748,7 @@ class EltwiseJitExecutor : public Eltwise::IEltwiseExecutor { return _batchDimIdx; } - static bool IsSupportedOp(const Node* node, + static bool isSupportedOp(const Node* node, const float alpha, const float beta, const float gamma, @@ -756,10 +756,6 @@ class EltwiseJitExecutor : public Eltwise::IEltwiseExecutor { const auto algorithm = node->getAlgorithm(); if (one_of(algorithm, Algorithm::EltwiseLog, - Algorithm::EltwiseBitwiseAnd, - Algorithm::EltwiseBitwiseNot, - Algorithm::EltwiseBitwiseOr, - Algorithm::EltwiseBitwiseXor, Algorithm::EltwiseBitwiseLeftShift, Algorithm::EltwiseBitwiseRightShift)) { return false; @@ -774,7 +770,11 @@ class EltwiseJitExecutor : public Eltwise::IEltwiseExecutor { Algorithm::EltwisePowerDynamic, Algorithm::EltwiseSoftRelu, Algorithm::EltwiseHsigmoid, - Algorithm::EltwiseErf)) { + Algorithm::EltwiseErf, + Algorithm::EltwiseBitwiseAnd, + Algorithm::EltwiseBitwiseNot, + Algorithm::EltwiseBitwiseOr, + Algorithm::EltwiseBitwiseXor)) { return false; } @@ -1441,7 +1441,7 @@ void Eltwise::initSupportedPrimitiveDescriptors() { #endif // if dim rank is greater than the maximum possible, we should use the reference execution - bool canUseOptimizedImpl = EltwiseJitExecutor::IsSupportedOp(this, getAlpha(), getBeta(), getGamma()) && + bool canUseOptimizedImpl = EltwiseJitExecutor::isSupportedOp(this, getAlpha(), getBeta(), getGamma()) && isISASupportedByJIT && (getInputShapeAtPort(0).getRank() <= MAX_ELTWISE_DIM_RANK); bool canUseOptimizedShapeAgnosticImpl = isDynamicNode() && canUseOptimizedImpl; @@ -2358,7 +2358,7 @@ bool Eltwise::canFuseParent(const NodePtr& parentNode) const { return false; } const auto& input_precisions = parentNode->getOriginalInputPrecisions(); - if (!EltwiseJitExecutor::IsSupportedOp(this, getAlpha(), getBeta(), getGamma(), input_precisions)) { + if (!EltwiseJitExecutor::isSupportedOp(this, getAlpha(), getBeta(), getGamma(), input_precisions)) { return false; } #else @@ -2406,12 +2406,12 @@ bool Eltwise::canFuse(const NodePtr& node) const { if (!mayiuse(dnnl::impl::cpu::aarch64::asimd) || (getInputShapeAtPort(0).getRank() > MAX_ELTWISE_DIM_RANK)) return false; - if (!EltwiseJitExecutor::IsSupportedOp(this, getAlpha(), getBeta(), getGamma())) { + if (!EltwiseJitExecutor::isSupportedOp(this, getAlpha(), getBeta(), getGamma())) { return false; } const auto eltwise = dynamic_cast(node.get()); if ((eltwise == nullptr) || - (!EltwiseJitExecutor::IsSupportedOp(eltwise, eltwise->getAlpha(), eltwise->getBeta(), eltwise->getGamma()))) { + (!EltwiseJitExecutor::isSupportedOp(eltwise, eltwise->getAlpha(), eltwise->getBeta(), eltwise->getGamma()))) { return false; } #elif defined(OPENVINO_ARCH_X86_64)