blob: 8ba6b4a5c52ae67538cc180cbb9b92b45ce2ea19 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
Teresa Charlin588cbdf2022-01-19 15:55:37 +00002// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
5
6#pragma once
7
Colm Donelan0c479742021-12-10 12:43:54 +00008#include <armnn/backends/Workload.hpp>
Matthew Benthamd80a7122019-01-08 17:52:37 +00009
10#include <arm_compute/runtime/IFunction.h>
11#include <arm_compute/runtime/Tensor.h>
12
13#include <memory>
telsoa014fcda012018-03-09 14:13:49 +000014
15namespace armnn
16{
17
arovir019e53a352018-08-31 15:26:35 +010018class NeonFloorFloatWorkload : public FloatWorkload<FloorQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000019{
20public:
arovir019e53a352018-08-31 15:26:35 +010021 NeonFloorFloatWorkload(const FloorQueueDescriptor& descriptor, const WorkloadInfo& info);
telsoa014fcda012018-03-09 14:13:49 +000022 virtual void Execute() const override;
David Monahanec819992022-02-10 14:47:13 +000023 // Replace input tensor handle with the given TensorHandle
24 void ReplaceInputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override;
telsoa014fcda012018-03-09 14:13:49 +000025
David Monahanec819992022-02-10 14:47:13 +000026 // Replace output tensor handle with the given TensorHandle
27 void ReplaceOutputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override;
telsoa014fcda012018-03-09 14:13:49 +000028private:
Matthew Benthamd80a7122019-01-08 17:52:37 +000029 std::unique_ptr<arm_compute::IFunction> m_Layer;
David Monahanec819992022-02-10 14:47:13 +000030 virtual void Reconfigure();
telsoa014fcda012018-03-09 14:13:49 +000031};
32
33} //namespace armnn
34
35
36
37