ArmNN
 25.02
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ClBatchToSpaceNdWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017-2018,2020-2023 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "ClBaseWorkload.hpp"
9 #include "ClWorkloadUtils.hpp"
10 
11 #include <arm_compute/runtime/CL/functions/CLBatchToSpaceLayer.h>
12 #include <arm_compute/runtime/CL/functions/CLReshapeLayer.h>
13 
14 namespace armnn
15 {
16 
18  const TensorInfo& output,
19  const BatchToSpaceNdDescriptor& descriptor);
20 
21 class ClBatchToSpaceNdWorkload : public ClBaseWorkload<BatchToSpaceNdQueueDescriptor>
22 {
23 public:
25  const WorkloadInfo& info,
26  const arm_compute::CLCompileContext& clCompileContext);
27 
28  virtual void Execute() const override;
29 
30 private:
31  mutable arm_compute::CLBatchToSpaceLayer m_Layer;
32  mutable std::unique_ptr<arm_compute::CLReshapeLayer> m_LayerReshapeInput;
33  mutable std::unique_ptr<arm_compute::CLReshapeLayer> m_LayerReshapeOutput;
34  arm_compute::CLTensor m_ReshapeInputTensor;
35  arm_compute::CLTensor m_ReshapeOutputTensor;
36 };
37 
38 } //namespace armnn
ClBatchToSpaceNdWorkload(const BatchToSpaceNdQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
virtual void Execute() const override
Copyright (c) 2021 ARM Limited and Contributors.
Status
enumeration
Definition: Types.hpp:43
arm_compute::Status ClBatchToSpaceNdWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor)
Contains information about TensorInfos of a layer.