blob: 6c74675eece4606fa5250dea2c928dea7d724e27 [file] [log] [blame]
Matthew Sloyanb63a3112021-09-08 13:05:51 +01001//
2// Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
Finn Williams73c547d2022-02-15 20:47:34 +00008#include "RefBaseWorkload.hpp"
Colm Donelan0c479742021-12-10 12:43:54 +00009#include <armnn/backends/WorkloadData.hpp>
Matthew Sloyanb63a3112021-09-08 13:05:51 +010010#include "Decoders.hpp"
11#include "Encoders.hpp"
12
13namespace armnn
14{
15
Finn Williams73c547d2022-02-15 20:47:34 +000016class RefConvolution3dWorkload : public RefBaseWorkload<Convolution3dQueueDescriptor>
Matthew Sloyanb63a3112021-09-08 13:05:51 +010017{
18public:
19 explicit RefConvolution3dWorkload(const Convolution3dQueueDescriptor& descriptor,
20 const WorkloadInfo& info);
21
Matthew Sloyan5d7b0a32021-10-18 13:07:49 +010022 void PostAllocationConfigure() override;
Matthew Sloyanb63a3112021-09-08 13:05:51 +010023
24 void Execute() const override;
25 void ExecuteAsync(WorkingMemDescriptor& workingMemDescriptor) override;
26
27private:
Matthew Sloyan5d7b0a32021-10-18 13:07:49 +010028 void PostAllocationConfigure(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs);
Matthew Sloyanb63a3112021-09-08 13:05:51 +010029 void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const;
Matthew Sloyanb63a3112021-09-08 13:05:51 +010030
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