| 95 | |
| 96 | template<typename T> |
| 97 | void 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 | |
| 119 | template void Debug<BFloat16>(const TensorInfo& inputInfo, |
| 120 | const BFloat16* inputData, |
no test coverage detected