Skip to content

Commit

Permalink
Fix problem of transpose InferSPMD in backward. (#60049)
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostScreaming authored Dec 17, 2023
1 parent 319494b commit 8189a99
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion paddle/phi/infermeta/spmd_rules/transpose.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ SpmdInfo TransposeGradInferSpmd(const DistMetaTensor& out_grad,
x_dims_mapping[origin_index] = out_grad_dims_mapping[i];
}
TensorDistAttr x_grad_dist_attr = out_grad.dist_attr();
x_grad_dist_attr.clean_partial_status();
x_grad_dist_attr.set_dims_mapping(x_dims_mapping);
return {{out_grad.dist_attr()}, {x_grad_dist_attr}};
}
Expand Down

0 comments on commit 8189a99

Please sign in to comment.