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 "RefSoftmaxFloat32Workload.hpp" |
| 7 | |
| 8 | #include "RefWorkloadUtils.hpp" |
| 9 | #include "Softmax.hpp" |
| 10 | |
| 11 | #include "Profiling.hpp" |
| 12 | |
| 13 | namespace armnn |
| 14 | { |
| 15 | |
| 16 | void RefSoftmaxFloat32Workload::Execute() const |
| 17 | { |
| 18 | ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefSoftmaxFloat32Workload_Execute"); |
| 19 | |
| 20 | Softmax(GetInputTensorDataFloat(0, m_Data), |
| 21 | GetOutputTensorDataFloat(0, m_Data), |
| 22 | GetTensorInfo(m_Data.m_Inputs[0]), |
| 23 | m_Data.m_Parameters.m_Beta); |
| 24 | } |
| 25 | |
| 26 | } //namespace armnn |