Lines Matching refs:mMemoryCache
114 mMemoryCache.reserve(kPreallocatedCount); in MemoryCache()
147 mMemoryCache[slot] = memory; in cacheMemory()
164 if (slot < 0 || static_cast<size_t>(slot) >= mMemoryCache.size()) { in getMemory()
165 return NN_ERROR() << "Invalid slot: " << slot << " vs " << mMemoryCache.size(); in getMemory()
167 return mMemoryCache[slot]; in getMemory()
181 mMemoryCache[slot] = {}; in freeMemory()
199 CHECK_LT(mMemoryCache.size(), kMaxNumberOfSlots) << "Exceeded maximum number of slots!"; in allocateSlotLocked()
200 const int32_t slot = static_cast<int32_t>(mMemoryCache.size()); in allocateSlotLocked()
201 mMemoryCache.emplace_back(); in allocateSlotLocked()
298 mMemoryCache(std::move(memoryCache)), in Burst()
302 auto [slot, hold] = mMemoryCache->cacheMemory(memory); in cacheMemory()
342 auto [slot, hold] = mMemoryCache->cacheMemory(std::get<nn::SharedMemory>(memoryPool)); in execute()
389 auto [slot, hold] = mMemoryCache->cacheMemory(std::get<nn::SharedMemory>(memoryPool)); in createReusableExecution()