ArmNN
 24.02
ClSpaceToBatchNdWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017, 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/CLSpaceToBatchLayer.h>
12 #include <arm_compute/runtime/CL/functions/CLReshapeLayer.h>
13 
14 namespace armnn
15 {
16 
18  const TensorInfo& output,
19  const SpaceToBatchNdDescriptor& descriptor);
20 
21 class ClSpaceToBatchNdWorkload : public ClBaseWorkload<SpaceToBatchNdQueueDescriptor>
22 {
23 public:
25  const WorkloadInfo& info,
26  const arm_compute::CLCompileContext& clCompileContext);
27  virtual void Execute() const override;
28 
29 private:
30  mutable arm_compute::CLSpaceToBatchLayer m_Layer;
31  mutable std::unique_ptr<arm_compute::CLReshapeLayer> m_LayerReshapeInput;
32  mutable std::unique_ptr<arm_compute::CLReshapeLayer> m_LayerReshapeOutput;
33  arm_compute::CLTensor m_ReshapeInputTensor;
34  arm_compute::CLTensor m_ReshapeOutputTensor;
35 };
36 
37 } //namespace armnn
38 
armnn::ClBaseWorkload
Definition: ClBaseWorkload.hpp:13
armnn::ClSpaceToBatchNdWorkload::ClSpaceToBatchNdWorkload
ClSpaceToBatchNdWorkload(const SpaceToBatchNdQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Definition: ClSpaceToBatchNdWorkload.cpp:93
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::ClSpaceToBatchNdWorkload
Definition: ClSpaceToBatchNdWorkload.hpp:21
ClWorkloadUtils.hpp
armnn::BoostLogSeverityMapping::info
@ info
armnn::ClSpaceToBatchNdWorkloadValidate
arm_compute::Status ClSpaceToBatchNdWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor)
Definition: ClSpaceToBatchNdWorkload.cpp:16
armnn::Status
Status
Definition: Types.hpp:42
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
ClBaseWorkload.hpp
armnn::ClSpaceToBatchNdWorkload::Execute
virtual void Execute() const override
Definition: ClSpaceToBatchNdWorkload.cpp:178
armnn::SpaceToBatchNdQueueDescriptor
Definition: WorkloadData.hpp:385