Skip to content

Commit

Permalink
fix: cache function name spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
0o001 committed Aug 19, 2023
1 parent c603c52 commit 4feef04
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions express/Executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,13 +621,13 @@ void Executor::_makeCache(const std::vector<EXPRP>& expr, bool forceCPU) {
group.outputMode = Interpreter::Session_Output_User;
group.callBackMode = Interpreter::Session_Release;
group.memoryUsageMode = Interpreter::Session_Memory_Cache;
std::shared_ptr<ComputeCache> cahce(new ComputeCache);
std::shared_ptr<ComputeCache> 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;
Expand All @@ -637,9 +637,9 @@ void Executor::_makeCache(const std::vector<EXPRP>& 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<EXPRP>& expr, bool forceCPU) {
Expand Down

0 comments on commit 4feef04

Please sign in to comment.