From e27983ccfc9f73e2ec69863dcc5d9812fba7f5ef Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Mon, 16 Jan 2023 16:45:08 +0000 Subject: 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 Change-Id: Ia44c008919b1bee299b43a672235b1fcc25bf1bd --- src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp') 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 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); -- cgit v1.2.1