未验证 提交 8a934047 编写于 作者: X xiaoxiaohehe001 提交者: GitHub

fix_split_infermeta (#49745)

上级 6d2d8e50
......@@ -3184,11 +3184,11 @@ void FillSplitOutDims(const MetaTensor& x,
(*out)[i]->set_dtype(x.dtype());
(*out)[i]->set_dims(out_dims[i]);
(*out)[i]->set_layout(x.layout());
(*out)[i]->share_lod(x);
} else {
(*out)[i]->set_dtype(x.dtype());
(*out)[i]->set_dims(out_dims[i]);
(*out)[i]->set_layout(x.layout());
(*out)[i]->share_lod(x);
}
}
}
......@@ -3219,11 +3219,11 @@ void SplitInferMeta(const MetaTensor& x,
out[i]->set_dtype(x.dtype());
out[i]->set_dims(out_dims[i]);
out[i]->set_layout(x.layout());
out[i]->share_lod(x);
} else {
out[i]->set_dtype(x.dtype());
out[i]->set_dims(out_dims[i]);
out[i]->set_layout(x.layout());
out[i]->share_lod(x);
}
}
} else {
......@@ -3310,11 +3310,11 @@ void SplitWithNumInferMeta(const MetaTensor& x,
out[i]->set_dtype(x.dtype());
out[i]->set_dims(out_dims[i]);
out[i]->set_layout(x.layout());
out[i]->share_lod(x);
} else {
out[i]->set_dtype(x.dtype());
out[i]->set_dims(out_dims[i]);
out[i]->set_layout(x.layout());
out[i]->share_lod(x);
}
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册