blob: 3599b60d8a163af66e49b260ea618a33d89e9af8 [file] [log] [blame]
Aron Virginas-Tarb2801962019-09-30 11:24:53 +01001//
Teresa Charlin588cbdf2022-01-19 15:55:37 +00002// Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
Aron Virginas-Tarb2801962019-09-30 11:24:53 +01003// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <armnn/Descriptors.hpp>
9
Teresa Charlin588cbdf2022-01-19 15:55:37 +000010#include "ClBaseWorkload.hpp"
Aron Virginas-Tarb2801962019-09-30 11:24:53 +010011
12#include <arm_compute/runtime/CL/functions/CLDepthToSpaceLayer.h>
13
14namespace armnn
15{
16
17arm_compute::Status ClDepthToSpaceWorkloadValidate(const TensorInfo& input,
18 const TensorInfo& output,
Keith Davisbcd860a2021-08-05 14:20:33 +010019 const DepthToSpaceDescriptor& descriptor);
Aron Virginas-Tarb2801962019-09-30 11:24:53 +010020
Teresa Charlin588cbdf2022-01-19 15:55:37 +000021class ClDepthToSpaceWorkload : public ClBaseWorkload<DepthToSpaceQueueDescriptor>
Aron Virginas-Tarb2801962019-09-30 11:24:53 +010022{
23public:
Sadik Armagane9444752020-12-02 11:28:58 +000024 ClDepthToSpaceWorkload(const DepthToSpaceQueueDescriptor& descriptor,
25 const WorkloadInfo& info,
26 const arm_compute::CLCompileContext& clCompileContext);
Aron Virginas-Tarb2801962019-09-30 11:24:53 +010027 void Execute() const override;
28
29private:
30 mutable arm_compute::CLDepthToSpaceLayer m_Layer;
31};
32
33} // namespace armnn