From 4feef04c5c16df7f80caeab927cb793d7f4b359a Mon Sep 17 00:00:00 2001 From: Mustafa UZUN Date: Sat, 19 Aug 2023 13:53:54 +0300 Subject: [PATCH] fix: cache function name spelling --- express/Executor.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/express/Executor.cpp b/express/Executor.cpp index 238545b9c..629c94dbb 100644 --- a/express/Executor.cpp +++ b/express/Executor.cpp @@ -621,13 +621,13 @@ void Executor::_makeCache(const std::vector& expr, bool forceCPU) { group.outputMode = Interpreter::Session_Output_User; group.callBackMode = Interpreter::Session_Release; group.memoryUsageMode = Interpreter::Session_Memory_Cache; - std::shared_ptr cahce(new ComputeCache); + std::shared_ptr cache(new ComputeCache); for (auto& iter : dstExpr) { auto expr = iter.first; expr->inside()->mCacheOffset = iter.second; - expr->inside()->mCache = cahce; + expr->inside()->mCache = cache; } - cahce->mCacheBuffers = std::move(opBuffers); + cache->mCacheBuffers = std::move(opBuffers); scheduleInfo.pipelineInfo[0].first.info.numThread = 1; if (forceCPU) { scheduleInfo.pipelineInfo[0].first.info.type = MNN_FORWARD_CPU; @@ -637,9 +637,9 @@ void Executor::_makeCache(const std::vector& expr, bool forceCPU) { } scheduleInfo.pipelineInfo[0].first.needComputeShape = false; scheduleInfo.pipelineInfo[0].first.needComputeGeometry = mLazyMode != LAZY_CONTENT; - cahce->mSession.reset(new Session(std::move(scheduleInfo), group, std::move(rt))); - cahce->mInputs = inputCaches; - cahce->mInputInside = std::move(extraInputs); + cache->mSession.reset(new Session(std::move(scheduleInfo), group, std::move(rt))); + cache->mInputs = inputCaches; + cache->mInputInside = std::move(extraInputs); } void Executor::makeCache(const std::vector& expr, bool forceCPU) {