| // |
| // Copyright © 2020 Arm Ltd and Contributors. All rights reserved. |
| // SPDX-License-Identifier: MIT |
| // |
| |
| #include "RefFillWorkload.hpp" |
| #include "Fill.hpp" |
| |
| #include "Decoders.hpp" |
| #include "Encoders.hpp" |
| #include "RefWorkloadUtils.hpp" |
| #include "Profiling.hpp" |
| |
| namespace armnn |
| { |
| |
| void RefFillWorkload::Execute() const |
| { |
| ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefFillWorkload_Execute"); |
| |
| const TensorInfo &outputTensorInfo = GetTensorInfo(m_Data.m_Outputs[0]); |
| |
| std::unique_ptr<Encoder<float>> encoderPtr = MakeEncoder<float>(outputTensorInfo, m_Data.m_Outputs[0]->Map()); |
| Encoder<float> &encoder = *encoderPtr; |
| |
| Fill(encoder, outputTensorInfo.GetShape(), m_Data.m_Parameters.m_Value); |
| } |
| |
| } //namespace armnn |