@@ -69,13 +69,13 @@ def rechunk_tensor(tensor, chunk_size):
6969 if start_chunk_index == end_chunk_index :
7070 t = tensor .chunks [start_chunk_index ]
7171 slice_op = TensorSlice (
72- (
72+ [
7373 slice (
7474 offset - tensor_cumnrows [start_chunk_index ],
7575 split + offset - tensor_cumnrows [end_chunk_index ],
7676 ),
7777 slice (None ),
78- ) ,
78+ ] ,
7979 dtype = t .dtype ,
8080 )
8181 out_groups .append (
@@ -93,7 +93,7 @@ def rechunk_tensor(tensor, chunk_size):
9393 start_chunk = tensor .chunks [start_chunk_index ]
9494 start_slice = int (offset - tensor_cumnrows [start_chunk_index ])
9595 slice_op = TensorSlice (
96- ( slice (start_slice , None ), slice (None )) , dtype = start_chunk .dtype
96+ [ slice (start_slice , None ), slice (None )] , dtype = start_chunk .dtype
9797 )
9898 chunks .append (
9999 slice_op .new_chunk (
@@ -107,7 +107,7 @@ def rechunk_tensor(tensor, chunk_size):
107107 end_chunk = tensor .chunks [end_chunk_index ]
108108 end_slice = int (split + offset - tensor_cumnrows [end_chunk_index ])
109109 slice_op_end = TensorSlice (
110- ( slice (None , end_slice ), slice (None )) , dtype = start_chunk .dtype
110+ [ slice (None , end_slice ), slice (None )] , dtype = start_chunk .dtype
111111 )
112112 chunks .append (
113113 slice_op_end .new_chunk (
0 commit comments