diff options
author | Kevin May <kevin.may@arm.com> | 2021-06-14 11:21:11 +0100 |
---|---|---|
committer | Kevin May <kevin.may@arm.com> | 2021-06-17 11:31:24 +0000 |
commit | dc873f6309784d5fd6914ca5432d32ae6c3de0c2 (patch) | |
tree | abcf1c14d999ab052594e8235eb3646b8d6c6429 /ArmnnPreparedModel_1_3.cpp | |
parent | 2d71002861e7c709b8f1a22edc023d4ca4e5d044 (diff) | |
download | android-nn-driver-dc873f6309784d5fd6914ca5432d32ae6c3de0c2.tar.gz |
IVGCVSW-5943 Updates for latest Android
* Use the correct method to get memory size
* Remove extra line that was a pre-existing typo
Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I807fc6b5d6fe32b28975ae2a98a6179712c26a96
Diffstat (limited to 'ArmnnPreparedModel_1_3.cpp')
-rw-r--r-- | ArmnnPreparedModel_1_3.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ArmnnPreparedModel_1_3.cpp b/ArmnnPreparedModel_1_3.cpp index 5a370321..63918725 100644 --- a/ArmnnPreparedModel_1_3.cpp +++ b/ArmnnPreparedModel_1_3.cpp @@ -492,9 +492,8 @@ Return<V1_3::ErrorStatus> ArmnnPreparedModel_1_3<HalVersion>::PrepareMemoryForOu size_t bufferSize = 0; #if !defined(ARMNN_ANDROID_S) bufferSize = memPools.at(outputArg.location.poolIndex).getHidlMemory().size(); - if (bufferSize < outputSize) #else - bufferSize = memPools.at(outputArg.location.poolIndex).getMemory().size; + bufferSize = memPools.at(outputArg.location.poolIndex).getSize(); #endif if (bufferSize < outputSize) { |