blob: 4d97512095c7397431594972b28506407f469a64 [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
8#include <backendsCommon/Workload.hpp>
9#include <backendsCommon/WorkloadData.hpp>
10#include "Decoders.hpp"
11#include "Encoders.hpp"
12
13namespace armnn
14{
15
16class RefConvolution3dWorkload : public BaseWorkload<Convolution3dQueueDescriptor>
17{
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