diff options
author | Teresa Charlin <teresa.charlinreyes@arm.com> | 2022-01-18 22:09:29 +0000 |
---|---|---|
committer | Teresa Charlin <teresa.charlinreyes@arm.com> | 2022-01-26 14:38:27 +0000 |
commit | 98b0dcb7f285f0009aee52cf526e4bfacd558d6d (patch) | |
tree | 0490ed7bedc9774c5dcaa134534d5804e4e33763 /src/armnnTestUtils | |
parent | 524a99ccf69b4bf5c8188bc9e4d89f402c374cae (diff) | |
download | armnn-98b0dcb7f285f0009aee52cf526e4bfacd558d6d.tar.gz |
IVGCVSW-6683-6684 Add ClBaseWorkload and NeonBaseWorkload
* Neon/Cl Activation workloads inherit from Cl/Neon BaseWorkload
* Unit Test for ReplaceTensorHandle functions
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: I985e34b93a96405735402a6d3b947957afbe2857
Diffstat (limited to 'src/armnnTestUtils')
-rw-r--r-- | src/armnnTestUtils/CreateWorkload.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/armnnTestUtils/CreateWorkload.hpp b/src/armnnTestUtils/CreateWorkload.hpp index 15de5b5ddb..d01919c09d 100644 --- a/src/armnnTestUtils/CreateWorkload.hpp +++ b/src/armnnTestUtils/CreateWorkload.hpp @@ -68,7 +68,7 @@ std::unique_ptr<ActivationWorkload> CreateActivationWorkloadTest(armnn::IWorkloa { // Creates the layer we're testing. ActivationDescriptor layerDesc; - layerDesc.m_Function = ActivationFunction::Abs; + layerDesc.m_Function = ActivationFunction::ReLu; layerDesc.m_A = 3.5f; layerDesc.m_B = -10.0f; @@ -94,7 +94,7 @@ std::unique_ptr<ActivationWorkload> CreateActivationWorkloadTest(armnn::IWorkloa CHECK(queueDescriptor.m_Outputs.size() == 1); CHECK(queueDescriptor.m_Parameters.m_A == 3.5f); CHECK(queueDescriptor.m_Parameters.m_B == -10.0f); - CHECK((queueDescriptor.m_Parameters.m_Function == ActivationFunction::Abs)); + CHECK((queueDescriptor.m_Parameters.m_Function == ActivationFunction::ReLu)); // Returns so we can do extra, backend-specific tests. return workload; |