Loading neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp +4 −1 Original line number Original line Diff line number Diff line Loading @@ -176,7 +176,10 @@ void ExecutionBurstController::MemoryCache::freeMemory(const nn::SharedMemory& m std::lock_guard guard(mMutex); std::lock_guard guard(mMutex); const int32_t slot = mMemoryIdToSlot.at(memory); const int32_t slot = mMemoryIdToSlot.at(memory); if (mBurstContext) { if (mBurstContext) { mBurstContext->freeMemory(slot); const auto ret = mBurstContext->freeMemory(slot); if (!ret.isOk()) { LOG(ERROR) << "IBustContext::freeMemory failed: " << ret.description(); } } } mMemoryIdToSlot.erase(memory); mMemoryIdToSlot.erase(memory); mMemoryCache[slot] = {}; mMemoryCache[slot] = {}; Loading Loading
neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp +4 −1 Original line number Original line Diff line number Diff line Loading @@ -176,7 +176,10 @@ void ExecutionBurstController::MemoryCache::freeMemory(const nn::SharedMemory& m std::lock_guard guard(mMutex); std::lock_guard guard(mMutex); const int32_t slot = mMemoryIdToSlot.at(memory); const int32_t slot = mMemoryIdToSlot.at(memory); if (mBurstContext) { if (mBurstContext) { mBurstContext->freeMemory(slot); const auto ret = mBurstContext->freeMemory(slot); if (!ret.isOk()) { LOG(ERROR) << "IBustContext::freeMemory failed: " << ret.description(); } } } mMemoryIdToSlot.erase(memory); mMemoryIdToSlot.erase(memory); mMemoryCache[slot] = {}; mMemoryCache[slot] = {}; Loading