!19571 bugfix for reducescatter about format selection

Merge pull request !19571 from wangjun/rs_master
This commit is contained in:
i-robot 2021-07-08 01:23:44 +00:00 committed by Gitee
commit b8dfe1095d
1 changed files with 1 additions and 5 deletions

View File

@ -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 {