aboutsummaryrefslogtreecommitdiff
path: root/src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp
diff options
context:
space:
mode:
authorColm Donelan <colm.donelan@arm.com>2023-01-16 16:45:08 +0000
committerColm Donelan <colm.donelan@arm.com>2023-01-18 11:45:06 +0000
commite27983ccfc9f73e2ec69863dcc5d9812fba7f5ef (patch)
tree48da418fa5adad68ef95a486cfb76f7b93bd9de6 /src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp
parent23a6d00339f2310dd2973e47d95b9c0d7b8d9bde (diff)
downloadarmnn-e27983ccfc9f73e2ec69863dcc5d9812fba7f5ef.tar.gz
IVGCVSW-7405 Improving error handling around creating directories.
The -F execute network option creates a directory to print intermediate tensors but minor problems caused serious failures. This attempts to clean up the error handling. Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: Ia44c008919b1bee299b43a672235b1fcc25bf1bd
Diffstat (limited to 'src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp')
-rw-r--r--src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp b/src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp
index e2fa8dbf5a..2ec94bca58 100644
--- a/src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp
+++ b/src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
+// Copyright © 2017,2023 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
@@ -72,9 +72,8 @@ LayerTestResult<T, Dim> DebugTestImpl(
{
// Given that this is dependent on an ExNet switch, we need to explicitly set the directory that the
// files are stored in as this happens within the ExNet flow
- fs::path tmpDir = fs::temp_directory_path();
- armnnUtils::Filesystem::CreateDirectory("/ArmNNIntermediateLayerOutputs");
- std::string full_path = tmpDir.generic_string() + "/ArmNNIntermediateLayerOutputs/" + layerName + ".numpy";
+ auto tmpDir = armnnUtils::Filesystem::CreateDirectory("/ArmNNIntermediateLayerOutputs");
+ std::string full_path = tmpDir + layerName + ".numpy";
ExecuteWorkload(*workload, memoryManager);