telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 2 | // Copyright © 2017 Arm Ltd and Contributors. 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 | #pragma once |
| 7 | |
Colm Donelan | 0c47974 | 2021-12-10 12:43:54 +0000 | [diff] [blame] | 8 | #include <armnn/backends/Workload.hpp> |
Matthew Bentham | 14e4669 | 2018-09-20 15:35:30 +0100 | [diff] [blame] | 9 | |
Matthew Bentham | 9b3e738 | 2020-02-05 21:39:55 +0000 | [diff] [blame] | 10 | #include <arm_compute/runtime/CL/functions/CLFloor.h> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
Sadik Armagan | 9be4916 | 2019-10-30 16:15:26 +0000 | [diff] [blame] | 15 | arm_compute::Status ClFloorWorkloadValidate(const TensorInfo& input, |
| 16 | const TensorInfo& output); |
| 17 | |
arovir01 | 9e53a35 | 2018-08-31 15:26:35 +0100 | [diff] [blame] | 18 | class ClFloorFloatWorkload : public FloatWorkload<FloorQueueDescriptor> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 19 | { |
| 20 | public: |
Sadik Armagan | e944475 | 2020-12-02 11:28:58 +0000 | [diff] [blame] | 21 | ClFloorFloatWorkload(const FloorQueueDescriptor& descriptor, |
| 22 | const WorkloadInfo& info, |
| 23 | const arm_compute::CLCompileContext& clCompileContext); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 24 | |
| 25 | void Execute() const override; |
David Monahan | ec81999 | 2022-02-10 14:47:13 +0000 | [diff] [blame] | 26 | // Replace input tensor handle with the given TensorHandle |
| 27 | void ReplaceInputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 28 | |
David Monahan | ec81999 | 2022-02-10 14:47:13 +0000 | [diff] [blame] | 29 | // Replace output tensor handle with the given TensorHandle |
| 30 | void ReplaceOutputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 31 | private: |
| 32 | mutable arm_compute::CLFloor m_Layer; |
David Monahan | ec81999 | 2022-02-10 14:47:13 +0000 | [diff] [blame] | 33 | virtual void Reconfigure(); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | } //namespace armnn |
| 37 | |
| 38 | |
| 39 | |
| 40 | |