File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
paddle/phi/infermeta/spmd_rules Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -87,13 +87,14 @@ SpmdInfo TransposeInferSpmd(const DistMetaTensor& x,
87
87
GetDimsMappingForAxes (out_axes, axis_to_dim_map);
88
88
89
89
auto x_dist_attr_dst = CopyTensorDistAttrForOutput (x_dist_attr_src);
90
+ x_dist_attr_dst.set_partial_status (x_dist_attr_src.partial_status ());
90
91
x_dist_attr_dst.set_dims_mapping (x_dims_mapping);
91
92
92
93
// initialize output dist_attr's process_mesh, batch_dim and dynamic dims with
93
94
// input dist_attr.
94
95
TensorDistAttr out_dist_attr = CopyTensorDistAttrForOutput (x_dist_attr_src);
95
96
out_dist_attr.set_dims_mapping (out_dims_mapping);
96
- out_dist_attr.set_partial_status (x_dist_attr_src .partial_status ());
97
+ out_dist_attr.set_partial_status (x_dist_attr_dst .partial_status ());
97
98
98
99
VLOG (4 ) << " TransposeInferSpmd:" ;
99
100
VLOG (4 ) << " Input: shape: [" << str_join (x_shape) << " ] "
You can’t perform that action at this time.
0 commit comments