diff options
author | Matthew Bentham <matthew.bentham@arm.com> | 2023-02-23 13:03:46 +0000 |
---|---|---|
committer | Francis Murtagh <francis.murtagh@arm.com> | 2023-02-28 12:36:12 +0000 |
commit | aeec3ce5c8f936fb1220a9de8c84cceef88d4080 (patch) | |
tree | 87e676cecdd4f81be53e33c484721f9448e313a2 /src/armnn/layers/FullyConnectedLayer.cpp | |
parent | 2a764ade6b5bf88cba0c43303291e0352ec3354c (diff) | |
download | armnn-aeec3ce5c8f936fb1220a9de8c84cceef88d4080.tar.gz |
Add constant version of IConnectableLayer::GetConstantTensorsByRef
This makes it easier to use, particularly in backends where it
is common to pass around const pointers to IConnectableLayer.
The non-constant version is rewritten to use the constant version.
Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Change-Id: Id3a8384447e93c213299a85ade9a667df5960534
Diffstat (limited to 'src/armnn/layers/FullyConnectedLayer.cpp')
-rw-r--r-- | src/armnn/layers/FullyConnectedLayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/armnn/layers/FullyConnectedLayer.cpp b/src/armnn/layers/FullyConnectedLayer.cpp index 05c53961e3..f86f58443f 100644 --- a/src/armnn/layers/FullyConnectedLayer.cpp +++ b/src/armnn/layers/FullyConnectedLayer.cpp @@ -61,9 +61,9 @@ void FullyConnectedLayer::ValidateTensorShapesFromInputs() ValidateAndCopyShape(outputShape, inferredShapes[0], m_ShapeInferenceMethod, "FullyConnectedLayer"); } -Layer::ConstantTensors FullyConnectedLayer::GetConstantTensorsByRef() +Layer::ImmutableConstantTensors FullyConnectedLayer::GetConstantTensorsByRef() const { - Layer::ConstantTensors tensors = GetConnectedConstantAsInputTensors(); + Layer::ImmutableConstantTensors tensors = GetConnectedConstantAsInputTensors(); return tensors; } |