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 | |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 8 | #include "NeonBaseWorkload.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 | |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 27 | class NeonConvolution3dWorkload : public NeonBaseWorkload<Convolution3dQueueDescriptor> |
Teresa Charlin | ec5f7d1 | 2021-10-22 17:15:00 +0100 | [diff] [blame] | 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 |