forked from mindspore-Ecosystem/mindspore
!19571 bugfix for reducescatter about format selection
Merge pull request !19571 from wangjun/rs_master
This commit is contained in:
commit
b8dfe1095d
|
@ -93,11 +93,7 @@ void HcclMetadataInfo(const CNodePtr &kernel_node, std::vector<std::shared_ptr<K
|
|||
std::vector<TypeId> outputs_type;
|
||||
size_t output_num = AnfAlgo::GetOutputTensorNum(kernel_node);
|
||||
for (size_t output_index = 0; output_index < output_num; ++output_index) {
|
||||
if (op_name == kReduceScatter && AnfAlgo::GetNodeAttr<int64_t>(kernel_node, kAttrFusion) > 0) {
|
||||
outputs_format.emplace_back(GetKernelFormat(kernel_node, 0));
|
||||
} else {
|
||||
outputs_format.emplace_back(GetKernelFormat(kernel_node, output_index));
|
||||
}
|
||||
outputs_format.emplace_back(GetKernelFormat(kernel_node, output_index));
|
||||
if (op_name == kReceive) {
|
||||
outputs_type.push_back(recv_type);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue