blob: 5c76bb387ec86e26bab7fc405396e97273b7379b [file] [log] [blame]
Conor Kennedy54b21692019-01-09 07:57:38 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <neon/workloads/NeonWorkloadUtils.hpp>
9
10#include <arm_compute/runtime/NEON/functions/NEElementwiseOperations.h>
11
12namespace armnn
13{
14
15/// Validate function for validating the inputs and output.
16/// @param [in] input0 The input0 value to be validated.
17/// @param [in] input1 The input1 value to be validated.
18/// @param [in] output The output value to be validated.
19arm_compute::Status NeonMinimumWorkloadValidate(const TensorInfo& input0,
20 const TensorInfo& input1,
21 const TensorInfo& output);
22
23class NeonMinimumWorkload : public BaseWorkload<MinimumQueueDescriptor>
24{
25public:
26 /// Create a NeonMinimumWorkload.
27 /// @param [in] descriptor The MinimumQueueDescriptor to configure this operation.
28 /// @param [in] info The workload where this operation can be found.
29 NeonMinimumWorkload(const MinimumQueueDescriptor& descriptor, const WorkloadInfo& info);
30
31 /// Execute the Minimum operation.
32 virtual void Execute() const override;
33
34private:
35 mutable arm_compute::NEElementwiseMin m_MinLayer;
36};
37
38} //namespace armnn