aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Svärd <jonny.svaerd@arm.com>2023-04-27 18:05:34 +0200
committerJonny Svärd <jonny.svaerd@arm.com>2023-04-27 22:45:07 +0200
commit8788ab3a3d53747205112961befc0e7869d52589 (patch)
treed27afb01888930b789eedcfa650b07d067ef054a
parentf21c31b5923a80fc4d74b54cf59dce3f0002d0f2 (diff)
downloadethos-u-core-software-8788ab3a3d53747205112961befc0e7869d52589.tar.gz
inference_process: Replace deprecated function call
Replace deprecated Length() call in Flatbuffers with size(), as suggested by the deprecation warning. Change-Id: If28f85547120598860e3606b3983dc4607247bb0
-rw-r--r--applications/inference_process/include/inference_parser.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/inference_process/include/inference_parser.hpp b/applications/inference_process/include/inference_parser.hpp
index fd7a97a..1ba8abf 100644
--- a/applications/inference_process/include/inference_parser.hpp
+++ b/applications/inference_process/include/inference_parser.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2022 Arm Limited. All rights reserved.
+ * SPDX-FileCopyrightText: Copyright 2022-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -108,8 +108,8 @@ private:
return true;
}
- if (shape->Length() == 0) {
- printf("Warning: shape zero length.\n");
+ if (shape->size() == 0) {
+ printf("Warning: shape zero size.\n");
return true;
}