ArmNN
 25.11
Loading...
Searching...
No Matches
NeonBatchToSpaceNdWorkload.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
10
11#include <arm_compute/runtime/NEON/functions/NEBatchToSpaceLayer.h>
12#include <arm_compute/runtime/NEON/functions/NEReshapeLayer.h>
13
14namespace armnn
15{
16
17arm_compute::Status NeonBatchToSpaceNdWorkloadValidate(const TensorInfo& input,
18 const TensorInfo& output,
19 const BatchToSpaceNdDescriptor& descriptor);
20
21class NeonBatchToSpaceNdWorkload : public NeonBaseWorkload<BatchToSpaceNdQueueDescriptor>
22{
23public:
25
27
28 virtual void Execute() const override;
29
30private:
31 mutable std::unique_ptr<arm_compute::NEBatchToSpaceLayer> 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}
NeonBaseWorkload(const BatchToSpaceNdQueueDescriptor &descriptor, const WorkloadInfo &info)
NeonBatchToSpaceNdWorkload(const BatchToSpaceNdQueueDescriptor &descriptor, const WorkloadInfo &info)
Copyright (c) 2021 ARM Limited and Contributors.
arm_compute::Status NeonBatchToSpaceNdWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor)
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
Contains information about TensorInfos of a layer.