Teresa Charlin | ec5f7d1 | 2021-10-22 17:15:00 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2021 Arm Ltd and Contributors. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Colm Donelan | 0c47974 | 2021-12-10 12:43:54 +0000 | [diff] [blame^] | 8 | #include <armnn/backends/Workload.hpp> |
Teresa Charlin | ec5f7d1 | 2021-10-22 17:15:00 +0100 | [diff] [blame] | 9 | |
| 10 | #include <arm_compute/runtime/IFunction.h> |
| 11 | #include <arm_compute/runtime/Tensor.h> |
| 12 | #include <arm_compute/runtime/MemoryManagerOnDemand.h> |
| 13 | |
| 14 | #include <memory> |
| 15 | |
| 16 | namespace armnn |
| 17 | { |
| 18 | |
| 19 | arm_compute::Status NeonConvolution3dWorkloadValidate(const TensorInfo& input, |
| 20 | const TensorInfo& output, |
| 21 | const Convolution3dDescriptor& descriptor, |
| 22 | const TensorInfo& weights, |
| 23 | const Optional<TensorInfo>& biases, |
| 24 | bool isFastMathEnabled = false, |
| 25 | const ActivationDescriptor* activationDescriptor = nullptr); |
| 26 | |
| 27 | class NeonConvolution3dWorkload : public BaseWorkload<Convolution3dQueueDescriptor> |
| 28 | { |
| 29 | public: |
| 30 | using BaseWorkload<Convolution3dQueueDescriptor>::m_Data; |
| 31 | |
| 32 | NeonConvolution3dWorkload(const Convolution3dQueueDescriptor& descriptor, |
| 33 | const WorkloadInfo& info, |
| 34 | std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager, |
| 35 | const bool isFastMathENabled = false); |
| 36 | |
| 37 | void Execute() const override; |
| 38 | |
| 39 | private: |
| 40 | std::unique_ptr<arm_compute::IFunction> m_ConvolutionLayer; |
| 41 | }; |
| 42 | |
| 43 | } //namespace armnn |