Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhengxiang committed Jan 17, 2025
2 parents c1acdce + 27d1365 commit 30a5ad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/converter/source/common/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,8 @@ bool Cli::convertModel(modelConfig& modelPath) {
}
}
bool needOptimize = modelPath.model != modelConfig::MNN || modelPath.optimizeLevel >= 1;
if (modelPath.saveStaticModel) {
if (modelPath.saveStaticModel && modelPath.model == modelConfig::MNN) {
MNN_PRINT("Skip Optimize for static model\n");
needOptimize = false;
}
std::vector<std::string> expectedPass;
Expand Down

0 comments on commit 30a5ad5

Please sign in to comment.