diff options
author | Jonny Svärd <jonny.svaerd@arm.com> | 2023-04-27 18:05:34 +0200 |
---|---|---|
committer | Jonny Svärd <jonny.svaerd@arm.com> | 2023-04-27 22:45:07 +0200 |
commit | 8788ab3a3d53747205112961befc0e7869d52589 (patch) | |
tree | d27afb01888930b789eedcfa650b07d067ef054a /applications | |
parent | f21c31b5923a80fc4d74b54cf59dce3f0002d0f2 (diff) | |
download | ethos-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
Diffstat (limited to 'applications')
-rw-r--r-- | applications/inference_process/include/inference_parser.hpp | 6 |
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; } |