• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <armnn/backends/WorkloadData.hpp>
9 #include "ClBaseWorkload.hpp"
10 #include <arm_compute/runtime/CL/functions/CLPadLayer.h>
11 
12 namespace armnn {
13 
14 class ClPadWorkload : public ClBaseWorkload<PadQueueDescriptor>
15 {
16 public:
17     ClPadWorkload(const PadQueueDescriptor& descriptor,
18                   const WorkloadInfo& info,
19                   const arm_compute::CLCompileContext& clCompileContext);
20 
21     void Execute() const override;
22 
23 private:
24     mutable arm_compute::CLPadLayer m_Layer;
25 };
26 
27 arm_compute::Status ClPadValidate(const TensorInfo& input,
28                                   const TensorInfo& output,
29                                   const PadDescriptor& descriptor);
30 
31 } //namespace armnn
32