commit | 342358dc1beb3e812d3878ba8ea4ee934857fedb | [log] [tgz] |
---|---|---|
author | Slava Shklyaev <slavash@google.com> | Thu Mar 05 18:02:19 2020 +0000 |
committer | Slava Shklyaev <slavash@google.com> | Fri Mar 20 15:12:43 2020 +0000 |
tree | f6eff955d896ecc0d90981e65ae4584b2d235f18 | |
parent | 507388c75dd178655ed3ec7e9eea4a31af6e6b21 [diff] [blame] |
Handle non-POINTER memory types in getBuffer Discussion: http://ag/c/platform/frameworks/ml/+/9911408/42/nn/runtime/ExecutionPlan.cpp#926 Bug: 148458829 Bug: 149693818 Test: NNT_static Change-Id: I035739db915eecef1859b58a4132fac58497fba2 Merged-In: I035739db915eecef1859b58a4132fac58497fba2 (cherry picked from commit f214bd8bc908d19e1a4669085cedffdfa47cee62)
diff --git a/runtime/Memory.cpp b/runtime/Memory.cpp index 34c8c56..5c8136f 100644 --- a/runtime/Memory.cpp +++ b/runtime/Memory.cpp
@@ -203,6 +203,11 @@ return pool; } +std::optional<RunTimePoolInfo> Memory::getRunTimePoolInfo() const { + // TODO(b/147777318): Cache memory mapping within the memory object. + return RunTimePoolInfo::createFromHidlMemory(kHidlMemory); +} + intptr_t Memory::getKey() const { return reinterpret_cast<intptr_t>(this); }