Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/MaxText/sharding.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def remove_size_one_mesh_axis(spec, mesh):
return None
new_spec = [] # type: ignore
for s in spec:
if s is None:
if s is None or s == P.UNCONSTRAINED:
new_spec.append(s) # type: ignore
elif isinstance(s, tuple):
new_spec.append(tuple(i for i in s if mesh.shape[i] != 1))
Expand Down
Loading