Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +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 | |
| 8 | #include <backendsCommon/Workload.hpp> |
| 9 | #include <backendsCommon/WorkloadData.hpp> |
| 10 | #include "Decoders.hpp" |
| 11 | #include "Encoders.hpp" |
| 12 | |
| 13 | namespace armnn |
| 14 | { |
| 15 | |
| 16 | class RefConvolution3dWorkload : public BaseWorkload<Convolution3dQueueDescriptor> |
| 17 | { |
| 18 | public: |
| 19 | explicit RefConvolution3dWorkload(const Convolution3dQueueDescriptor& descriptor, |
| 20 | const WorkloadInfo& info); |
| 21 | |
| 22 | |
| 23 | void Execute() const override; |
| 24 | void ExecuteAsync(WorkingMemDescriptor& workingMemDescriptor) override; |
| 25 | |
| 26 | private: |
| 27 | void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const; |
| 28 | std::unique_ptr<ScopedTensorHandle> m_Weight; |
| 29 | std::unique_ptr<ScopedTensorHandle> m_Bias; |
| 30 | |
| 31 | std::unique_ptr<Decoder<float>> m_FilterDecoder; |
| 32 | std::unique_ptr<Decoder<float>> m_BiasDecoder; |
| 33 | |
| 34 | TensorShape m_FilterShape; |
| 35 | }; |
| 36 | |
| 37 | } //namespace armnn |
| 38 | |