diff options
author | Keith Davis <keith.davis@arm.com> | 2022-10-19 14:53:05 +0100 |
---|---|---|
committer | Keith Davis <keith.davis@arm.com> | 2022-10-19 14:53:14 +0100 |
commit | f63b457c48fa2aeb01d8cff52475d23e5644f8f4 (patch) | |
tree | b2028a49e60412234020b878951df1e53d990baf /src/backends/reference | |
parent | 15f9c68adef324cd0158cea3d021c0f6bef5eecf (diff) | |
download | armnn-f63b457c48fa2aeb01d8cff52475d23e5644f8f4.tar.gz |
MLCE-545 INT8 TFLite model execution abnormal
* Bug fix where files were being overwritten at each debug layer
Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: I609fdc82afcee925824efb02183c7dbc942fced0
Diffstat (limited to 'src/backends/reference')
-rw-r--r-- | src/backends/reference/workloads/Debug.cpp | 5 |
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 { |