aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikhil Raj <nikhil.raj@arm.com>2020-10-09 14:52:25 +0100
committerJim Flynn <jim.flynn@arm.com>2020-10-27 10:09:22 +0000
commite51815323bbc0b07a329af9fb22fc4944132af45 (patch)
tree7a36fcda799c672b38366eb2282be12cfca4a709 /src
parent0f74e92354018cece0f55d37d583288699a72b84 (diff)
downloadarmnn-e51815323bbc0b07a329af9fb22fc4944132af45.tar.gz
IVGCVSW-5077 Ensure ArmNN builds successfully with latest protobuf
* Use the single parameter version of SetTotalBytesLimit() * Update CMakeLists to turn off deprecated declarartions Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I2d360966743986872cfef40c2ab1a3505fc5d99a
Diffstat (limited to 'src')
-rw-r--r--src/armnnCaffeParser/CaffeParser.cpp2
-rw-r--r--src/armnnOnnxParser/OnnxParser.cpp2
-rwxr-xr-xsrc/armnnTfParser/TfParser.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/armnnCaffeParser/CaffeParser.cpp b/src/armnnCaffeParser/CaffeParser.cpp
index f95fe9c252..d11da466b8 100644
--- a/src/armnnCaffeParser/CaffeParser.cpp
+++ b/src/armnnCaffeParser/CaffeParser.cpp
@@ -1731,7 +1731,7 @@ INetworkPtr CaffeParser::CreateNetworkFromBinaryFile(const char* graphFile,
FileInputStream inStream(fileno(fd));
CodedInputStream codedStream(&inStream);
- codedStream.SetTotalBytesLimit(INT_MAX, INT_MAX);
+ codedStream.SetTotalBytesLimit(INT_MAX);
bool success = netParam.ParseFromCodedStream(&codedStream);
fclose(fd);
diff --git a/src/armnnOnnxParser/OnnxParser.cpp b/src/armnnOnnxParser/OnnxParser.cpp
index 4ae6627ac2..f3d0a73342 100644
--- a/src/armnnOnnxParser/OnnxParser.cpp
+++ b/src/armnnOnnxParser/OnnxParser.cpp
@@ -546,7 +546,7 @@ ModelPtr OnnxParser::LoadModelFromBinaryFile(const char* graphFile)
google::protobuf::io::FileInputStream inStream(fileno(fd));
google::protobuf::io::CodedInputStream codedStream(&inStream);
- codedStream.SetTotalBytesLimit(INT_MAX, INT_MAX);
+ codedStream.SetTotalBytesLimit(INT_MAX);
bool success = modelProto.get()->ParseFromCodedStream(&codedStream);
fclose(fd);
diff --git a/src/armnnTfParser/TfParser.cpp b/src/armnnTfParser/TfParser.cpp
index 255233bab3..aec8df8876 100755
--- a/src/armnnTfParser/TfParser.cpp
+++ b/src/armnnTfParser/TfParser.cpp
@@ -3564,7 +3564,7 @@ INetworkPtr TfParser::CreateNetworkFromBinaryFile(const char* graphFile,
google::protobuf::io::FileInputStream inStream(fileno(fd));
google::protobuf::io::CodedInputStream codedStream(&inStream);
- codedStream.SetTotalBytesLimit(INT_MAX, INT_MAX);
+ codedStream.SetTotalBytesLimit(INT_MAX);
bool success = graphDef.ParseFromCodedStream(&codedStream);
fclose(fd);