1 // 2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved. 3 // SPDX-License-Identifier: MIT 4 // 5 6 #pragma once 7 8 #include <armnn/backends/Workload.hpp> 9 10 #include <arm_compute/runtime/IFunction.h> 11 #include <arm_compute/runtime/Tensor.h> 12 13 #include <memory> 14 15 namespace armnn 16 { 17 18 class NeonFloorFloatWorkload : public FloatWorkload<FloorQueueDescriptor> 19 { 20 public: 21 NeonFloorFloatWorkload(const FloorQueueDescriptor& descriptor, const WorkloadInfo& info); 22 virtual void Execute() const override; 23 // Replace input tensor handle with the given TensorHandle 24 void ReplaceInputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override; 25 26 // Replace output tensor handle with the given TensorHandle 27 void ReplaceOutputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override; 28 private: 29 std::unique_ptr<arm_compute::IFunction> m_Layer; 30 virtual void Reconfigure(); 31 }; 32 33 } //namespace armnn 34 35 36 37 38