blob: dd146e5681d48681fe083b5698ac962b6f65d1c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
//
// Copyright © 2020 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/Tensor.hpp>
#include <armnn/Descriptors.hpp>
#include <backendsCommon/Workload.hpp>
#include <arm_compute/runtime/NEON/functions/NEBatchToSpaceLayer.h>
namespace armnn
{
arm_compute::Status NeonBatchToSpaceNdWorkloadValidate(const TensorInfo& input,
const TensorInfo& output,
const BatchToSpaceNdDescriptor& descriptor);
class NeonBatchToSpaceNdWorkload : public BaseWorkload<BatchToSpaceNdQueueDescriptor>
{
public:
using BaseWorkload<BatchToSpaceNdQueueDescriptor>::BaseWorkload;
NeonBatchToSpaceNdWorkload(const BatchToSpaceNdQueueDescriptor& descriptor, const WorkloadInfo& info);
virtual void Execute() const override;
private:
mutable std::unique_ptr<arm_compute::NEBatchToSpaceLayer> m_Layer;
};
}
|