From aeec3ce5c8f936fb1220a9de8c84cceef88d4080 Mon Sep 17 00:00:00 2001 From: Matthew Bentham Date: Thu, 23 Feb 2023 13:03:46 +0000 Subject: 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 Change-Id: Id3a8384447e93c213299a85ade9a667df5960534 --- include/armnn/INetwork.hpp | 5 +++++ include/armnn/Version.hpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include/armnn') diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp index c9c8a04656..c944d09d41 100644 --- a/include/armnn/INetwork.hpp +++ b/include/armnn/INetwork.hpp @@ -126,6 +126,11 @@ public: // Returns ConstantTensors of this Layer if it has any, otherwise returns empty vector. virtual ConstantTensors GetConstantTensorsByRef() = 0; + using ImmutableConstantTensors = std::vector>>; + + // Returns ConstantTensors of this Layer if it has any, otherwise returns empty vector. + virtual ImmutableConstantTensors GetConstantTensorsByRef() const = 0; + protected: /// Objects are not deletable via the handle ~IConnectableLayer() {} diff --git a/include/armnn/Version.hpp b/include/armnn/Version.hpp index aedd4a0c0b..82d546a56a 100644 --- a/include/armnn/Version.hpp +++ b/include/armnn/Version.hpp @@ -11,7 +11,7 @@ // ArmNN version components #define ARMNN_MAJOR_VERSION 32 -#define ARMNN_MINOR_VERSION 0 +#define ARMNN_MINOR_VERSION 1 #define ARMNN_PATCH_VERSION 0 /// ARMNN_VERSION: "X.Y.Z" -- cgit v1.2.1