ArmNN
 24.08
NeonSpaceToBatchNdWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2020-2023 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "NeonBaseWorkload.hpp"
9 #include "NeonWorkloadUtils.hpp"
10 
11 #include <arm_compute/runtime/NEON/functions/NESpaceToBatchLayer.h>
12 #include <arm_compute/runtime/NEON/functions/NEReshapeLayer.h>
13 
14 namespace armnn
15 {
16 
18  const TensorInfo& output,
19  const SpaceToBatchNdDescriptor& descriptor);
20 
21 class NeonSpaceToBatchNdWorkload : public NeonBaseWorkload<SpaceToBatchNdQueueDescriptor>
22 {
23 public:
25 
27 
28  virtual void Execute() const override;
29 
30 private:
31  mutable std::unique_ptr<arm_compute::NESpaceToBatchLayer> m_Layer;
32  mutable std::unique_ptr<arm_compute::NEReshapeLayer> m_LayerReshapeInput;
33  mutable std::unique_ptr<arm_compute::NEReshapeLayer> m_LayerReshapeOutput;
34  arm_compute::Tensor m_ReshapeInputTensor;
35  arm_compute::Tensor m_ReshapeOutputTensor;
36 };
37 
38 } //namespace armnn
armnn::NeonSpaceToBatchNdWorkloadValidate
arm_compute::Status NeonSpaceToBatchNdWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor)
Definition: NeonSpaceToBatchNdWorkload.cpp:15
NeonBaseWorkload.hpp
armnn::NeonSpaceToBatchNdWorkload
Definition: NeonSpaceToBatchNdWorkload.hpp:21
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::NeonSpaceToBatchNdWorkload::NeonSpaceToBatchNdWorkload
NeonSpaceToBatchNdWorkload(const SpaceToBatchNdQueueDescriptor &descriptor, const WorkloadInfo &info)
Definition: NeonSpaceToBatchNdWorkload.cpp:92
armnn::NeonSpaceToBatchNdWorkload::Execute
virtual void Execute() const override
Definition: NeonSpaceToBatchNdWorkload.cpp:174
armnn::Status
Status
Definition: Types.hpp:42
NeonWorkloadUtils.hpp
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::SpaceToBatchNdQueueDescriptor
Definition: WorkloadData.hpp:385
armnn::NeonBaseWorkload
Definition: NeonBaseWorkload.hpp:13