Home
last modified time | relevance | path

Searched refs:mMemoryCache (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/neuralnetworks/1.2/utils/src/
DBurst.cpp114 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()
[all …]
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
DBurst.h127 std::vector<nn::SharedMemory> mMemoryCache GUARDED_BY(mMutex);
198 const std::shared_ptr<MemoryCache> mMemoryCache; variable
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/src/
DBurst.cpp175 mMemoryCache(mBurstExecutor, mCallback) { in Burst()
190 mMemoryCache.removeCacheEntry(slot); in freeMemory()
237 const auto cacheEntries = NN_TRY(mMemoryCache.getCacheEntries(slotsOfPools)); in execute()
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/include/nnapi/hal/
DBurst.h150 MemoryCache mMemoryCache; variable