blob: 186a02ba26952a04d23787bb104d47413bc152b6 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. 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
Matthew Benthamd80a7122019-01-08 17:52:37 +00008#include <backendsCommon/Workload.hpp>
Kevin Maya023c402019-12-12 17:28:05 +00009#include <backendsCommon/WorkloadData.hpp>
10#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
Nattapat Chaimanowongcce11fc2018-10-12 16:30:56 +010022class NeonReshapeWorkload : public BaseWorkload<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