diff options
author | Keith Davis <keith.davis@arm.com> | 2022-10-14 15:50:33 +0100 |
---|---|---|
committer | KeithARM <keith.davis@arm.com> | 2022-10-19 10:33:40 +0000 |
commit | 15f9c68adef324cd0158cea3d021c0f6bef5eecf (patch) | |
tree | 1cd48b345d182fd19efdc40a32e2540befd8f925 /src/armnn/Network.cpp | |
parent | 7bbf56598010041ea46c3fa9d32604db777ee26e (diff) | |
download | armnn-15f9c68adef324cd0158cea3d021c0f6bef5eecf.tar.gz |
MLCE-545 INT8 TFLite model execution abnormal
* Add functionality to print output tensors to file in tempdir
* UnitTests
Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: Idfb4c186544187db1fecdfca11c662540f645439
Diffstat (limited to 'src/armnn/Network.cpp')
-rw-r--r-- | src/armnn/Network.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/armnn/Network.cpp b/src/armnn/Network.cpp index 1b1815f73d..bb6eb19fa3 100644 --- a/src/armnn/Network.cpp +++ b/src/armnn/Network.cpp @@ -1810,10 +1810,14 @@ IOptimizedNetworkPtr Optimize(const Graph& inGraph, // This must occur after all topological changes to the graph and any redirection of variables // If the debug flag is set, then insert a DebugLayer after each layer // Doing this after applying the backend optimizations as they might have changed some layers - if (options.m_Debug) + if (options.m_Debug && !options.m_DebugToFile) { Optimizer::Pass(optGraph, MakeOptimizations(InsertDebugLayer())); } + else if (options.m_DebugToFile) + { + Optimizer::Pass(optGraph, MakeOptimizations(InsertDebugToFileLayer())); + } // Calculate the compatibility strategies for tensor handles OptimizationResult strategyResult = SelectTensorHandleStrategy(optGraph, |