blob: 5775259f64130084f2fc77376f0c70e78747796f [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
Teresa Charlin588cbdf2022-01-19 15:55:37 +00002// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
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>
Kevin Maya023c402019-12-12 17:28:05 +000010#include <neon/workloads/NeonWorkloadUtils.hpp>
Matthew Benthamd80a7122019-01-08 17:52:37 +000011
Kevin Maya023c402019-12-12 17:28:05 +000012#include <armnn/TypesUtils.hpp>
Matthew Benthamd80a7122019-01-08 17:52:37 +000013#include <arm_compute/runtime/IFunction.h>
14
15#include <memory>
telsoa014fcda012018-03-09 14:13:49 +000016
17namespace armnn
18{
19
Kevin Maya023c402019-12-12 17:28:05 +000020arm_compute::Status NeonReshapeWorkloadValidate(const TensorInfo& input, const TensorInfo& output);
21
Teresa Charlin588cbdf2022-01-19 15:55:37 +000022class NeonReshapeWorkload : public NeonBaseWorkload<ReshapeQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000023{
24public:
Nattapat Chaimanowongcce11fc2018-10-12 16:30:56 +010025 NeonReshapeWorkload(const ReshapeQueueDescriptor& descriptor, const WorkloadInfo& info);
26
telsoa014fcda012018-03-09 14:13:49 +000027 virtual void Execute() const override;
28
29private:
Matthew Benthamd80a7122019-01-08 17:52:37 +000030 std::unique_ptr<arm_compute::IFunction> m_Layer;
telsoa014fcda012018-03-09 14:13:49 +000031};
32
33} //namespace armnn