aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Kelly <mike.kelly@arm.com>2022-11-25 13:55:24 +0000
committerFrancis Murtagh <francis.murtagh@arm.com>2023-01-03 14:45:41 +0000
commit2ae3224c559dcd3033be1bfd41be08113048dc50 (patch)
treee130d940fb6d080807dc29bf0c9602e1bd30af4a /include
parenta09e0336d3e89931e8e0d43010197155a45d2ec7 (diff)
downloadarmnn-2ae3224c559dcd3033be1bfd41be08113048dc50.tar.gz
GitHub #709 Provide a CreateNetworkFromBinary method for the ONNX parser
* Added CreateNetworkFromBinary to the ONNX parser Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I5ca72ee49c7b098f9fb4aaf55a8bc077230cb30e
Diffstat (limited to 'include')
-rw-r--r--include/armnnOnnxParser/IOnnxParser.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/armnnOnnxParser/IOnnxParser.hpp b/include/armnnOnnxParser/IOnnxParser.hpp
index ba7fc83f93..89c22c03de 100644
--- a/include/armnnOnnxParser/IOnnxParser.hpp
+++ b/include/armnnOnnxParser/IOnnxParser.hpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2017 Arm Ltd. All rights reserved.
+// Copyright © 2017,2022 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
@@ -27,6 +27,13 @@ public:
static IOnnxParserPtr Create();
static void Destroy(IOnnxParser* parser);
+ /// Create the network from a protobuf binary vector
+ armnn::INetworkPtr CreateNetworkFromBinary(const std::vector<uint8_t>& binaryContent);
+
+ /// Create the network from a protobuf binary vector, with inputShapes specified
+ armnn::INetworkPtr CreateNetworkFromBinary(const std::vector<uint8_t>& binaryContent,
+ const std::map<std::string, armnn::TensorShape>& inputShapes);
+
/// Create the network from a protobuf binary file on disk
armnn::INetworkPtr CreateNetworkFromBinaryFile(const char* graphFile);