Lines Matching refs:mMemoryCache
118 mMemoryCache.reserve(kPreallocatedCount); in MemoryCache()
151 mMemoryCache[slot] = memory; in cacheMemory()
168 if (slot < 0 || static_cast<size_t>(slot) >= mMemoryCache.size()) { in getMemory()
169 return NN_ERROR() << "Invalid slot: " << slot << " vs " << mMemoryCache.size(); in getMemory()
171 return mMemoryCache[slot]; in getMemory()
182 mMemoryCache[slot] = {}; in freeMemory()
200 CHECK_LT(mMemoryCache.size(), kMaxNumberOfSlots) << "Exceeded maximum number of slots!"; in allocateSlotLocked()
201 const int32_t slot = static_cast<int32_t>(mMemoryCache.size()); in allocateSlotLocked()
202 mMemoryCache.emplace_back(); in allocateSlotLocked()
299 mMemoryCache(std::move(memoryCache)), in ExecutionBurstController()
304 auto [slot, hold] = mMemoryCache->cacheMemory(memory); in cacheMemory()
346 auto [slot, hold] = mMemoryCache->cacheMemory(std::get<nn::SharedMemory>(memoryPool)); in execute()
391 auto [slot, hold] = mMemoryCache->cacheMemory(std::get<nn::SharedMemory>(memoryPool)); in createReusableExecution()