From 81beae3a870004795275e9266bc43d845b9f78db Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Tue, 13 Jul 2021 19:46:11 +0100 Subject: IVGCVSW-6119 ConstTensorsAsInput: FullyConnected * Constant weights and biases are now stored as Constant layers. * Updated Serializer, Deserializer and unit tests to reflect this. * Updated TfLiteDelegate, TfLiteParser and OnnxParser. * Updated Schema with IsConstant and ConstantTensorsAsInputs. * Updated Ref backend to handle constant weights and bias as inputs rather than reading from member variables. * Added dynamic or constant input EndToEnd tests. !android-nn-driver:5959 Signed-off-by: Matthew Sloyan Change-Id: Ibf3cf437df1100e4b322b0d303c575c6339f9696 --- src/backends/reference/RefBackend.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backends/reference/RefBackend.hpp') diff --git a/src/backends/reference/RefBackend.hpp b/src/backends/reference/RefBackend.hpp index 441f4ebdf4..2855957e31 100644 --- a/src/backends/reference/RefBackend.hpp +++ b/src/backends/reference/RefBackend.hpp @@ -12,7 +12,8 @@ namespace armnn const BackendCapabilities cpuRefCapabilities("CpuRef", { {"NonConstWeights", true}, - {"AsyncExecution", true} + {"AsyncExecution", true}, + {"ConstantTensorsAsInputs", true} }); const std::set oldCpuRefCapabilities { -- cgit v1.2.1