17 template<armnn::DataType DataType>
20 Execute(m_Data.m_Inputs);
23 template<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));
47 template<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.
void Debug(const TensorInfo &inputInfo, const T *inputData, LayerGuid guid, const std::string &layerName, unsigned int slotIndex, bool outputsToFile)
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers