telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
| 5 | |
| 6 | #include "RefActivationFloat32Workload.hpp" |
| 7 | |
| 8 | #include "Activation.hpp" |
| 9 | #include "RefWorkloadUtils.hpp" |
| 10 | |
| 11 | #include "Profiling.hpp" |
| 12 | |
| 13 | namespace armnn |
| 14 | { |
| 15 | |
| 16 | void RefActivationFloat32Workload::Execute() const |
| 17 | { |
| 18 | ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefActivationFloat32Workload_Execute"); |
| 19 | |
| 20 | Activation(GetInputTensorDataFloat(0, m_Data), |
| 21 | GetOutputTensorDataFloat(0, m_Data), |
| 22 | GetTensorInfo(m_Data.m_Inputs[0]), |
| 23 | m_Data.m_Parameters.m_Function, |
| 24 | m_Data.m_Parameters.m_A, |
| 25 | m_Data.m_Parameters.m_B); |
| 26 | } |
| 27 | |
| 28 | } //namespace armnn |