blob: 3769f860c975042e6dfae848a0c847aa63b4cbd8 [file] [log] [blame]
Mike Kellyc9ea45a2020-02-28 18:11:58 +00001//
Mike Kelly7cbe7812023-07-25 17:37:33 +01002// Copyright © 2020-2023 Arm Ltd and Contributors. All rights reserved.
Mike Kellyc9ea45a2020-02-28 18:11:58 +00003// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
Teresa Charlin588cbdf2022-01-19 15:55:37 +00008#include "NeonBaseWorkload.hpp"
Colm Donelan0c479742021-12-10 12:43:54 +00009#include <armnn/backends/WorkloadData.hpp>
Mike Kellyc9ea45a2020-02-28 18:11:58 +000010#include <neon/workloads/NeonWorkloadUtils.hpp>
11
12#include <armnn/TypesUtils.hpp>
13#include <arm_compute/runtime/NEON/functions/NEPermute.h>
14
15#include <string>
16
17namespace armnn
18{
19arm_compute::Status NeonTransposeWorkloadValidate(const TensorInfo& input, const TensorInfo& output,
20 const TransposeDescriptor& descriptor);
21
Teresa Charlin588cbdf2022-01-19 15:55:37 +000022class NeonTransposeWorkload : public NeonBaseWorkload<TransposeQueueDescriptor>
Mike Kellyc9ea45a2020-02-28 18:11:58 +000023{
24public:
Mike Kellyc9ea45a2020-02-28 18:11:58 +000025 NeonTransposeWorkload(const TransposeQueueDescriptor& descriptor, const WorkloadInfo& info);
26 void Execute() const override;
27
28private:
29 using BaseWorkload<TransposeQueueDescriptor>::m_Data;
30 mutable arm_compute::NEPermute m_PermuteFunction;
31};
32
33} // namespace armnn