aboutsummaryrefslogtreecommitdiff
path: root/src/backends/reference/workloads/Debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/backends/reference/workloads/Debug.cpp')
-rw-r--r--src/backends/reference/workloads/Debug.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backends/reference/workloads/Debug.cpp b/src/backends/reference/workloads/Debug.cpp
index fdadfef590..f4f9792fc1 100644
--- a/src/backends/reference/workloads/Debug.cpp
+++ b/src/backends/reference/workloads/Debug.cpp
@@ -103,9 +103,10 @@ void Debug(const TensorInfo& inputInfo,
{
if (outputsToFile)
{
- auto rootPathToFile = armnnUtils::Filesystem::CreateDirectory("/ArmNNIntermediateLayerOutputs");
- std::ofstream out(rootPathToFile + layerName + ".numpy");
+ fs::path tmpDir = fs::temp_directory_path();
+ std::ofstream out(tmpDir.generic_string() + "/ArmNNIntermediateLayerOutputs/" + layerName + ".numpy");
PrintOutput<T>(inputInfo, inputData, guid, layerName, slotIndex, out);
+ out.close();
}
else
{