提交 2dd5cf14 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2746 [AutoParallel]Remove 32 byte aligned limit for CPU gatherV2

Merge pull request !2746 from lichen/remove_32byte_limit_for_cpu_gatherv2
......@@ -79,8 +79,8 @@ Status GatherV2PInfo::CheckStrategy(const StrategyPtr &strategy) {
auto param_shape = inputs_shape_.at(0);
auto param_strategy = strategy->GetInputDim().at(0);
auto slice_shape = param_shape.at(param_shape.size() - 1) / param_strategy.at(param_strategy.size() - 1);
if (slice_shape % 8 != 0 && slice_shape != 1) {
MS_LOG(DEBUG) << name_ << ": Last dim of param slice shape need 32Byte aligned.";
if ((target_ != CPU) && (slice_shape % 8 != 0) && (slice_shape != 1)) {
MS_LOG(ERROR) << name_ << ": Last dim of param slice shape need 32Byte aligned.";
return FAILED;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册