diff options
Diffstat (limited to 'include/armnn/INetwork.hpp')
-rw-r--r-- | include/armnn/INetwork.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<std::reference_wrapper<const std::shared_ptr<ConstTensorHandle>>>; + + // 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() {} |