Home
last modified time | relevance | path

Searched refs:memoryCache (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/neuralnetworks/1.2/utils/src/
DBurst.cpp92 const hidl_vec<int32_t>& slots, const std::shared_ptr<Burst::MemoryCache>& memoryCache) { in getMemoriesHelper() argument
96 const auto memory = NN_TRY(memoryCache->getMemory(slot)); in getMemoriesHelper()
151 Task cleanup = [memory, memoryCache = std::move(self)] { in cacheMemory()
152 if (const auto lock = memoryCache.lock()) { in cacheMemory()
210 const std::shared_ptr<MemoryCache>& memoryCache) in ExecutionBurstCallback() argument
211 : kMemoryCache(memoryCache) { in ExecutionBurstCallback()
212 CHECK(memoryCache != nullptr); in ExecutionBurstCallback()
217 const auto memoryCache = kMemoryCache.lock(); in getMemories() local
218 if (memoryCache == nullptr) { in getMemories()
225 const auto maybeMemories = getMemoriesHelper(slots, memoryCache); in getMemories()
[all …]
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
DBurst.h138 explicit ExecutionBurstCallback(const std::shared_ptr<MemoryCache>& memoryCache);
164 std::shared_ptr<MemoryCache> memoryCache,
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DBurst.cpp111 if (const auto memoryCache = maybeMemoryCache.lock()) { in getOrCacheMemory() local
112 memoryCache->tryFreeMemory(memory, identifier); in getOrCacheMemory()