!5973 score + 1 when match output format with pri_format

Merge pull request !5973 from lianliguang/fix-maskrcnn
This commit is contained in:
mindspore-ci-bot 2020-09-10 19:06:06 +08:00 committed by Gitee
commit 6568904078
1 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,9 @@ void UpdateCurMatchCounts(const kernel::KernelBuildInfo &kernel_build_info, cons
if (kernel_build_info.GetInputFormat(input_index) == pri_match_format) {
(*cur_kernelinfo_match_counts)[MATCH_SPECIAL_FORMAT_COUNT] += base_score;
}
if (kernel_build_info.GetOutputFormat(input_index) == pri_match_format) {
(*cur_kernelinfo_match_counts)[MATCH_SPECIAL_FORMAT_COUNT] += base_score;
}
if (kernel_build_info.GetInputFormat(input_index) == kOpFormat_DEFAULT) {
(*cur_kernelinfo_match_counts)[MATCH_DEFAULT_FORMAT_COUNT] += base_score;
}