ArmNN
 24.08
ClSplitterWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "ClBaseWorkload.hpp"
9 
10 #include <arm_compute/core/Error.h>
11 #include <arm_compute/runtime/IFunction.h>
12 #include <arm_compute/runtime/CL/functions/CLSplit.h>
13 
14 #include <functional>
15 
16 namespace armnn
17 {
18 
19 arm_compute::Status ClSplitterWorkloadValidate(const TensorInfo& input,
20  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
21  unsigned int splitAxis);
22 
23 class ClSplitterWorkload : public ClBaseWorkload<SplitterQueueDescriptor>
24 {
25 public:
27  const WorkloadInfo& info,
28  const arm_compute::CLCompileContext& clCompileContext);
29 
30  void Execute() const override;
31 
32 private:
33  std::unique_ptr<arm_compute::IFunction> m_Layer;
34 };
35 
36 } //namespace armnn
armnn::ClSplitterWorkload::ClSplitterWorkload
ClSplitterWorkload(const SplitterQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Definition: ClSplitterWorkload.cpp:56
armnn::ClSplitterWorkload
Definition: ClSplitterWorkload.hpp:23
armnn::ClSplitterWorkloadValidate
arm_compute::Status ClSplitterWorkloadValidate(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, unsigned int splitAxis)
Definition: ClSplitterWorkload.cpp:32
armnn::ClBaseWorkload
Definition: ClBaseWorkload.hpp:13
armnn::SplitterQueueDescriptor
Definition: WorkloadData.hpp:111
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::ClSplitterWorkload::Execute
void Execute() const override
Definition: ClSplitterWorkload.cpp:117
armnn::Status
Status
Definition: Types.hpp:42
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
ClBaseWorkload.hpp