24.02
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
:
26
ClSplitterWorkload
(
const
SplitterQueueDescriptor
& descriptor,
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:55
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:31
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:116
armnn::Status
Status
Definition:
Types.hpp:42
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition:
01_00_quick_start.dox:6
ClBaseWorkload.hpp
src
backends
cl
workloads
ClSplitterWorkload.hpp
Generated on Wed Feb 14 2024 16:36:16 for Arm NN by
1.8.17