ArmNN
 25.11
Loading...
Searching...
No Matches
RefDebugWorkload.hpp
Go to the documentation of this file.
1//
2// Copyright © 2018-2024 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
9
10#include "RefBaseWorkload.hpp"
11
12namespace armnn
13{
14
15template <armnn::DataType DataType>
16class RefDebugWorkload : public TypedWorkload<DebugQueueDescriptor, DataType>
17{
18public:
21 , m_Callback(nullptr) {}
22
23 virtual const std::string& GetName() const override
24 {
25 static const std::string name = std::string("RefDebug") + GetDataTypeName(DataType) + "Workload";
26 return name;
27 }
28
31
32 void Execute() const override;
33
34 void RegisterDebugCallback(const DebugCallbackFunction& func) override;
35
36private:
37 void Execute(std::vector<ITensorHandle*> inputs) const;
38 DebugCallbackFunction m_Callback;
39};
40
51
52} // namespace armnn
void RegisterDebugCallback(const DebugCallbackFunction &func) override
RefDebugWorkload(const DebugQueueDescriptor &descriptor, const WorkloadInfo &info)
void Execute() const override
virtual const std::string & GetName() const override
TypedWorkload(const DebugQueueDescriptor &descriptor, const WorkloadInfo &info)
Definition Workload.hpp:85
Copyright (c) 2021 ARM Limited and Contributors.
RefDebugWorkload< DataType::QAsymmU8 > RefDebugQAsymmU8Workload
std::function< void(LayerGuid guid, unsigned int slotIndex, ITensorHandle *tensorHandle)> DebugCallbackFunction
Define the type of callback for the Debug layer to call.
Definition Types.hpp:400
RefDebugWorkload< DataType::Boolean > RefDebugBooleanWorkload
RefDebugWorkload< DataType::Signed32 > RefDebugSigned32Workload
constexpr const char * GetDataTypeName(DataType dataType)
RefDebugWorkload< DataType::QAsymmS8 > RefDebugQAsymmS8Workload
RefDebugWorkload< DataType::Signed64 > RefDebugSigned64Workload
RefDebugWorkload< DataType::BFloat16 > RefDebugBFloat16Workload
RefDebugWorkload< DataType::Float16 > RefDebugFloat16Workload
RefDebugWorkload< DataType::Float32 > RefDebugFloat32Workload
RefDebugWorkload< DataType::QSymmS8 > RefDebugQSymmS8Workload
DataType
Definition Types.hpp:49
RefDebugWorkload< DataType::QSymmS16 > RefDebugQSymmS16Workload
Contains information about TensorInfos of a layer.