17template<armnn::DataType DataType>
20 Execute(m_Data.m_Inputs);
23template<armnn::DataType DataType>
32 const T* inputData = GetInputTensorData<T>(0, m_Data);
33 T* outputData = GetOutputTensorData<T>(0, m_Data);
37 m_Callback(m_Data.m_Guid, m_Data.m_SlotIndex, inputs[0]);
41 Debug(inputInfo, inputData, m_Data.m_Guid, m_Data.m_LayerName, m_Data.m_SlotIndex, m_Data.m_LayerOutputToFile);
44 std::memcpy(outputData, inputData, inputInfo.
GetNumElements()*
sizeof(T));
47template<armnn::DataType DataType>
#define ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
void RegisterDebugCallback(const DebugCallbackFunction &func) override
void Execute() const override
unsigned int GetNumElements() const
Copyright (c) 2021 ARM Limited and Contributors.
typename ResolveTypeImpl< DT >::Type ResolveType
std::function< void(LayerGuid guid, unsigned int slotIndex, ITensorHandle *tensorHandle)> DebugCallbackFunction
Define the type of callback for the Debug layer to call.
armnn::TensorInfo GetTensorInfo(unsigned int numberOfBatches, unsigned int numberOfChannels, unsigned int height, unsigned int width, const armnn::DataLayout dataLayout, const armnn::DataType dataType)