blob: a7aa84d6243e20bec97a287113a021a512b3a455 [file] [log] [blame]
Matthew Jacksond5166102019-07-31 14:06:28 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
Colm Donelan0c479742021-12-10 12:43:54 +00008#include <armnn/backends/Workload.hpp>
Matthew Jacksond5166102019-07-31 14:06:28 +01009
Matthew Bentham9b3e7382020-02-05 21:39:55 +000010#include <arm_compute/runtime/CL/functions/CLStackLayer.h>
Matthew Jacksond5166102019-07-31 14:06:28 +010011
12namespace armnn
13{
14arm_compute::Status ClStackWorkloadValidate(const std::vector<const TensorInfo*>& inputs,
15 const TensorInfo& output,
16 const StackDescriptor& descriptor);
17
18class ClStackWorkload : public BaseWorkload<StackQueueDescriptor>
19{
20public:
Sadik Armagane9444752020-12-02 11:28:58 +000021 ClStackWorkload(const StackQueueDescriptor& descriptor,
22 const WorkloadInfo& info,
23 const arm_compute::CLCompileContext& clCompileContext);
Matthew Jacksond5166102019-07-31 14:06:28 +010024
25 void Execute() const override;
26
27private:
28 mutable std::unique_ptr<arm_compute::CLStackLayer> m_Layer;
29};
30
31} //namespace armnn