Skip to content

Commit

Permalink
[MNN:Bugfix] Fix Windows compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhaode committed Dec 4, 2023
1 parent 085e9d3 commit f6e60cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/core/Backend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Backend : public NonCopyable {
* @brief callback after resize ops.
*/
virtual ErrorCode onResizeEnd() {
return NO_ERROR;
return MNN::NO_ERROR;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tools/converter/source/optimizer/onnxextra/OnnxClip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class OnnxClipTransform : public OnnxExtraManager::Transform {
halide_type_code_t type;
for (int i = 0; i < inputs.size(); ++i) {
if (nullptr != inputs[i] && nullptr != inputs[i]->getInfo()) {
type = inputs[i]->getInfo()->type.code;
type = static_cast<halide_type_code_t>(inputs[i]->getInfo()->type.code);
break;
}
}
Expand Down

0 comments on commit f6e60cc

Please sign in to comment.