aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/Layer.cpp
diff options
context:
space:
mode:
authorFrancis Murtagh <francis.murtagh@arm.com>2022-01-19 16:31:58 +0000
committerFrancis Murtagh <francis.murtagh@arm.com>2022-02-03 17:34:45 +0000
commit9d74ba6e85a043e9603445e062315f5c4965fbd6 (patch)
tree1997aac65827e64d4270149826ba92c6fa3e4d11 /src/armnn/Layer.cpp
parent2e24175c683bca42496104591d6b702dad360b8e (diff)
downloadarmnn-9d74ba6e85a043e9603445e062315f5c4965fbd6.tar.gz
IVGCVSW-6634 SubgraphView: Add method of returning a GetSubgraphWorkingCopy
* Add pointer to SubgraphView allowing it to store a working copy implementation of its own representation of graph. * Make SubgraphView a friend of Graph to allow access to layers. * Add constructor to SubgraphView taking SubgraphViewWorkingCopyPtr * Rewrite Graph::SubstituteSubgraph for use on SubgraphView * Add GetWorkingCopy() method * Add tests for replacement of multiplication with DepthwiseConv2d * Check GetBackendHint() has value before passing to PrecompiledLayer * Add GetOwningIConnectableLayer to IInputSlot to allow traversing from IConnectableLayer->IOutputSlot->IInputSlot->IConnectableLayer Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: Iaaef14448d8b73867eaee9d69f4f98d5d1bf171c
Diffstat (limited to 'src/armnn/Layer.cpp')
-rw-r--r--src/armnn/Layer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/armnn/Layer.cpp b/src/armnn/Layer.cpp
index 88bc6d56e1..4ed179fa22 100644
--- a/src/armnn/Layer.cpp
+++ b/src/armnn/Layer.cpp
@@ -488,4 +488,9 @@ const IConnectableLayer& OutputSlot::GetOwningIConnectableLayer() const
return m_OwningLayer;
}
+const IConnectableLayer& InputSlot::GetOwningIConnectableLayer() const
+{
+ return m_OwningLayer;
+}
+
} // namespace armnn