Searched refs:memoryCache (Results 1 – 3 of 3) sorted by relevance
92 const hidl_vec<int32_t>& slots, const std::shared_ptr<Burst::MemoryCache>& memoryCache) { in getMemoriesHelper() argument96 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() argument211 : kMemoryCache(memoryCache) { in ExecutionBurstCallback()212 CHECK(memoryCache != nullptr); in ExecutionBurstCallback()217 const auto memoryCache = kMemoryCache.lock(); in getMemories() local218 if (memoryCache == nullptr) { in getMemories()225 const auto maybeMemories = getMemoriesHelper(slots, memoryCache); in getMemories()[all …]
138 explicit ExecutionBurstCallback(const std::shared_ptr<MemoryCache>& memoryCache);164 std::shared_ptr<MemoryCache> memoryCache,
111 if (const auto memoryCache = maybeMemoryCache.lock()) { in getOrCacheMemory() local112 memoryCache->tryFreeMemory(memory, identifier); in getOrCacheMemory()