!47667 biasadd op bug fix

Merge pull request !47667 from liubuyu/r2.0.0-alpha_bug_fix
This commit is contained in:
i-robot 2023-01-10 01:42:22 +00:00 committed by Gitee
commit d9174f1593
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ static std::string ImplTypeToStr(OpImplyType impl_type) {
}
std::vector<std::string> SplitStrToVec(const std::string &input) {
static const std::map<std::string, std::string> kSpecFormat = {
{kOpFormat_NCHW, kOpFormat_DEFAULT}, {kOpFormat_ND, kOpFormat_DEFAULT}, {kOpFormat_NCDHW, kOpFormat_DEFAULT}};
static const std::map<std::string, std::string> kSpecFormat = {{kOpFormat_NCHW, kOpFormat_DEFAULT},
{kOpFormat_ND, kOpFormat_DEFAULT}};
if (input.empty()) {
MS_LOG(EXCEPTION) << "Op select ret item is null.";
}