diff options
author | Finn Williams <Finn.Williams@arm.com> | 2020-07-03 10:12:03 +0100 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2020-07-26 15:42:26 +0000 |
commit | f24effa4995ea4c3dd91e33d4a2787e02decf8b4 (patch) | |
tree | 56e0f22cab0fd8544693b9240bd8d74426eaa454 /include/armnn | |
parent | 8398edcfb933b638ddf4b88d84d6e188c49b1e0d (diff) | |
download | armnn-f24effa4995ea4c3dd91e33d4a2787e02decf8b4.tar.gz |
IVGCVSW-5155 Update Arm NN API to allow for call to shape inference
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I0a2babe5b5b09eb81c9900dc3a05071034a0440b
Diffstat (limited to 'include/armnn')
-rw-r--r-- | include/armnn/BackendOptions.hpp | 2 | ||||
-rw-r--r-- | include/armnn/INetwork.hpp | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/armnn/BackendOptions.hpp b/include/armnn/BackendOptions.hpp index d7ccbd4b57..44438b2f7c 100644 --- a/include/armnn/BackendOptions.hpp +++ b/include/armnn/BackendOptions.hpp @@ -11,6 +11,8 @@ namespace armnn { +struct BackendOptions; +using NetworkOptions = std::vector<BackendOptions>; /// Struct for the users to pass backend specific options struct BackendOptions diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp index c0c52f974a..6a143b05fb 100644 --- a/include/armnn/INetwork.hpp +++ b/include/armnn/INetwork.hpp @@ -4,6 +4,7 @@ // #pragma once +#include <armnn/BackendOptions.hpp> #include <armnn/Deprecated.hpp> #include <armnn/DescriptorsFwd.hpp> #include <armnn/ILayerVisitor.hpp> @@ -11,7 +12,6 @@ #include <armnn/Optional.hpp> #include <armnn/TensorFwd.hpp> #include <armnn/Types.hpp> -#include <armnn/Deprecated.hpp> #include <memory> #include <vector> @@ -105,8 +105,8 @@ using INetworkPtr = std::unique_ptr<INetwork, void(*)(INetwork* network)>; class INetwork { public: - static INetwork* CreateRaw(); - static INetworkPtr Create(); + static INetwork* CreateRaw(NetworkOptions networkOptions = {}); + static INetworkPtr Create(NetworkOptions networkOptions = {}); static void Destroy(INetwork* network); virtual Status PrintGraph() = 0; |