diff options
author | James Conroy <james.conroy@arm.com> | 2019-05-30 16:36:59 +0100 |
---|---|---|
committer | James Conroy <james.conroy@arm.com> | 2019-05-31 15:56:38 +0100 |
commit | 83735b177a4c71952d36e7a7919537b5a4d6d49e (patch) | |
tree | 51a2e30b1f6caeea9994848c3be6f93471d03b64 /src/backends/reference/workloads/RefFloorFloat32Workload.cpp | |
parent | 983daec95bd3b3e5558771e995092981f2df2373 (diff) | |
download | armnn-83735b177a4c71952d36e7a7919537b5a4d6d49e.tar.gz |
IVGCVSW-3177 Refactor Floor reference workload
* Renamed RefFloorFloat32Workload to RefFloorWorkload
and updated references to reflect this change.
* RefFloorWorkload now uses Decoders/Encoders and
supports the use of multiple data types.
* Deleted FloorTestImpl.hpp and moved its contents
into LayerTests.hpp.
Change-Id: Ie079d05f2f6a578172f0fe3024f9607c030bce64
Signed-off-by: James Conroy <james.conroy@arm.com>
Diffstat (limited to 'src/backends/reference/workloads/RefFloorFloat32Workload.cpp')
-rw-r--r-- | src/backends/reference/workloads/RefFloorFloat32Workload.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/backends/reference/workloads/RefFloorFloat32Workload.cpp b/src/backends/reference/workloads/RefFloorFloat32Workload.cpp deleted file mode 100644 index cc1f8800dc..0000000000 --- a/src/backends/reference/workloads/RefFloorFloat32Workload.cpp +++ /dev/null @@ -1,29 +0,0 @@ -// -// Copyright © 2017 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#include "RefFloorFloat32Workload.hpp" - -#include "RefWorkloadUtils.hpp" - -#include "Profiling.hpp" - -namespace armnn -{ - -void RefFloorFloat32Workload::Execute() const -{ - ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefFloorFloat32Workload_Execute"); - - const float* const input = GetInputTensorDataFloat(0, m_Data); - float* const output = GetOutputTensorDataFloat(0, m_Data); - - unsigned int numElements = GetTensorInfo(m_Data.m_Inputs[0]).GetNumElements(); - for (unsigned int i = 0; i < numElements; ++i) - { - output[i] = floorf(input[i]); - } -} - -} //namespace armnn |