Renaming NEActivationLayerKernel to CpuActivationKernel
authorNikhil Raj <nikhil.raj@arm.com>
Tue, 12 Jan 2021 14:29:18 +0000 (14:29 +0000)
committerNikhil Raj Arm <nikhil.raj@arm.com>
Fri, 15 Jan 2021 11:45:48 +0000 (11:45 +0000)
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: I33dc1127627b4b89c02a3bea246eaf7499e5a780

src/backends/neon/test/NeonTimerTest.cpp

index ff27048..d9edca1 100644 (file)
@@ -105,9 +105,12 @@ BOOST_AUTO_TEST_CASE(NeonTimerMeasure)
         BOOST_CHECK_EQUAL(measurements[0].m_Name, "NeonKernelTimer/0: NEFillBorderKernel");
         BOOST_CHECK(measurements[0].m_Value > 0.0);
     }
-    std::ostringstream oss;
-    oss << "NeonKernelTimer/" << measurements.size()-1 << ": NEActivationLayerKernel";
-    BOOST_CHECK_EQUAL(measurements[measurements.size()-1].m_Name, oss.str());
+    std::ostringstream oss_neon;
+    std::ostringstream oss_cpu;
+    oss_neon << "NeonKernelTimer/" << measurements.size()-1 << ": NEActivationLayerKernel";
+    oss_cpu << "NeonKernelTimer/" << measurements.size()-1 << ": CpuActivationKernel";
+    BOOST_CHECK(measurements[measurements.size()-1].m_Name == oss_neon.str() ||
+                measurements[measurements.size()-1].m_Name == oss_cpu.str());
     BOOST_CHECK(measurements[measurements.size()-1].m_Value > 0.0);
 }