MCPcopy Create free account
hub / github.com/ARM-software/armnn / Debug

Function Debug

src/backends/reference/workloads/Debug.cpp:97–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96template<typename T>
97void Debug(const TensorInfo& inputInfo,
98 const T* inputData,
99 LayerGuid guid,
100 const std::string& layerName,
101 unsigned int slotIndex,
102 bool outputsToFile)
103{
104 if (outputsToFile)
105 {
106#if !defined(ARMNN_DISABLE_FILESYSTEM)
107 fs::path tmpDir = fs::temp_directory_path();
108 std::ofstream out(tmpDir.generic_string() + "/ArmNNIntermediateLayerOutputs/" + layerName + ".numpy");
109 PrintOutput<T>(inputInfo, inputData, guid, layerName, slotIndex, out);
110 out.close();
111#endif
112 }
113 else
114 {
115 PrintOutput<T>(inputInfo, inputData, guid, layerName, slotIndex, std::cout);
116 }
117}
118
119template void Debug<BFloat16>(const TensorInfo& inputInfo,
120 const BFloat16* inputData,

Callers 1

ExecuteMethod · 0.85

Calls 2

temp_directory_pathFunction · 0.85
generic_stringMethod · 0.80

Tested by

no test coverage detected