Skip to content

Commit

Permalink
fix bug of parallel tuner
Browse files Browse the repository at this point in the history
  • Loading branch information
Caozhou1995 committed May 25, 2022
1 parent 2f93dac commit 1c84d7a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def _amend_dist_attr(self):
for i, dim_mapping in enumerate(dims_mapping):
if dim_mapping != -1 \
and tensor_shape[i] % process_shape[dim_mapping] != 0:
dims_mapping[i] = [-1]
dims_mapping[i] = -1

for arg_name in dist_attr.outputs_dist_attrs.keys():
new_dims_mapping = []
Expand All @@ -585,7 +585,7 @@ def _amend_dist_attr(self):
for i, dim_mapping in enumerate(dims_mapping):
if dim_mapping != -1 \
and tensor_shape[i] % process_shape[dim_mapping] != 0:
dims_mapping[i] = [-1]
dims_mapping[i] = -1

dist_op_impls = find_compatible_distributed_operator_impls(
dist_op, partial=False)
Expand Down

0 comments on commit 1c84d7a

Please sign in to comment.