Skip to content

Commit 81f1477

Browse files
committed
fix: return type
1 parent 4f21488 commit 81f1477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xla/Sharding.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function sharding_to_concrete_array_indices(
251251
sharding::CondensedOpSharding, shape::Dims{N}, device_ids
252252
) where {N}
253253
if sharding.type == OpShardingType.Replicated || sharding.type == OpShardingType.Maximal
254-
return ntuple(Returns(ntuple(i -> 1:shape[i], N)), length(device_ids)), false
254+
return map(Returns(UnitRange.(1, shape)), device_ids), false
255255
elseif sharding.type == OpShardingType.Other
256256
partitions, num_replicas = get_number_of_ways_dim_sharded(sharding)
257257
@assert length(partitions) == length(shape)

0 commit comments

Comments
 (0)