blob: 3a9d5ffee740c439bf797f2275773ff4150f8a9c [file] [log] [blame]
Matthew Jacksond5166102019-07-31 14:06:28 +01001//
Teresa Charlin588cbdf2022-01-19 15:55:37 +00002// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
Matthew Jacksond5166102019-07-31 14:06:28 +01003// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
Teresa Charlin588cbdf2022-01-19 15:55:37 +00008#include "ClBaseWorkload.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
Teresa Charlin588cbdf2022-01-19 15:55:37 +000018class ClStackWorkload : public ClBaseWorkload<StackQueueDescriptor>
Matthew Jacksond5166102019-07-31 14:06:28 +010019{
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