forked from huawei/mindspore2022
!31043 raise_exception_in_matmul_no_stra_scene
Merge pull request !31043 from yao_yf/raise_exception_in_matmul_no_stra_scene
This commit is contained in:
commit
1d01344468
|
|
@ -488,6 +488,9 @@ Status MatMulBase::GenerateStrategiesNotPower2(int64_t stage_id, size_t dev_num_
|
|||
continue;
|
||||
}
|
||||
}
|
||||
if (strategy_cost_.empty()) {
|
||||
MS_LOG(EXCEPTION) << "No available strategy.";
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
|
@ -523,6 +526,9 @@ Status MatMulBase::GenerateStrategies(int64_t stage_id) {
|
|||
continue;
|
||||
}
|
||||
}
|
||||
if (strategy_cost_.empty()) {
|
||||
MS_LOG(EXCEPTION) << "No available strategy.";
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
||||
auto dev_num_not_2_power = dev_num / (dev_num - dev_num_2_power);
|
||||
|
|
|
|||
Loading…
Reference in New Issue