Skip to content

Commit

Permalink
[CPU] [ARM] Floor was removed from Math for arm32
Browse files Browse the repository at this point in the history
  • Loading branch information
eshoguli committed May 20, 2024
1 parent c51c32d commit 9f1b7e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/plugins/intel_cpu/src/cpu_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,7 @@ static const TypeToNameMap& get_type_to_name_tbl() {
{"Ceiling", Type::Math},
{"Cos", Type::Math},
{"Cosh", Type::Math},
#if defined(OPENVINO_ARCH_ARM)
{"Floor", Type::Math},
#else
{"Floor", Type::Eltwise},
#endif
{"HardSigmoid", Type::Math},
{"If", Type::If},
{"Neg", Type::Math},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ std::string ActivationLayerCPUTest::getPrimitiveType(const utils::ActivationType
return "";
}
#endif
if (activation_type == utils::ActivationTypes::Floor) {
return "ref";
}
return "acl";
#else
return CPUTestsBase::getPrimitiveType();
Expand All @@ -199,9 +202,7 @@ const std::map<utils::ActivationTypes, std::vector<std::vector<float>>>& activat
{Exp, {{}}},
{Clamp, {{-2.0f, 2.0f}}},
{Elu, {{0.1f}}},
#if !defined(OPENVINO_ARCH_ARM)
{Floor, {{}}},
#endif
{Swish, {{0.1f}}},
{HSwish, {{}}},
{PReLu, {{-0.01f}}},
Expand Down

0 comments on commit 9f1b7e7

Please sign in to comment.