ArmNN
 25.11
Loading...
Searching...
No Matches
RefSliceWorkload.cpp
Go to the documentation of this file.
1//
2// Copyright © 2019,2020-2024 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
7
9#include "Slice.hpp"
10
11#include <Profiling.hpp>
12
13namespace armnn
14{
15
17{
18 Execute(m_Data.m_Inputs, m_Data.m_Outputs);
19}
20
21void RefSliceWorkload::Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const
22{
23 ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID("RefSliceWorkload_Execute");
24
25 const TensorInfo& inputInfo = GetTensorInfo(inputs[0]);
26
27 Slice(inputInfo,
29 inputs[0]->Map(),
30 outputs[0]->Map(),
31 GetDataTypeSize(inputInfo.GetDataType()));
32}
33
34} // namespace armnn
#define ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
void Execute() const override
DataType GetDataType() const
Definition Tensor.hpp:200
Copyright (c) 2021 ARM Limited and Contributors.
constexpr unsigned int GetDataTypeSize(DataType dataType)
armnn::TensorInfo GetTensorInfo(unsigned int numberOfBatches, unsigned int numberOfChannels, unsigned int height, unsigned int width, const armnn::DataLayout dataLayout, const armnn::DataType dataType)