commit | fadeb8a92046c6941db721145de3514cf6015079 | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Sun Feb 07 00:11:13 2021 -0800 |
committer | Michael Butler <butlermichael@google.com> | Wed Feb 17 10:15:09 2021 -0800 |
tree | 46501456b0f8d992dce71feb55a71aa68c2c432a | |
parent | 0ace84a193a73e3220b3f74d7de6bbc2b6745368 [diff] [blame] |
Change NNAPI Memory to ref-counted SharedMemory -- hal Bug: 179906132 Test: mma Test: NeuralNetworksTest_static Test: presubmit Change-Id: I6435db906a2efe4938da18149a1fcd6d24730a95 Merged-In: I6435db906a2efe4938da18149a1fcd6d24730a95 (cherry picked from commit 79a16ebb6f42c21a21202f7b63ce372f2df15137)
diff --git a/neuralnetworks/utils/common/src/InvalidBurst.cpp b/neuralnetworks/utils/common/src/InvalidBurst.cpp index 4ca6603..81ca18d 100644 --- a/neuralnetworks/utils/common/src/InvalidBurst.cpp +++ b/neuralnetworks/utils/common/src/InvalidBurst.cpp
@@ -26,7 +26,8 @@ namespace android::hardware::neuralnetworks::utils { -InvalidBurst::OptionalCacheHold InvalidBurst::cacheMemory(const nn::Memory& /*memory*/) const { +InvalidBurst::OptionalCacheHold InvalidBurst::cacheMemory( + const nn::SharedMemory& /*memory*/) const { return nullptr; }