@@ -1272,7 +1272,7 @@ def test_advanced1_inc_and_set(self):
1272
1272
if len (inc_shape ) == len (data_shape ) and (
1273
1273
len (inc_shapes ) == 0 or inc_shape [0 ] != 1
1274
1274
):
1275
- inc_shape = (n_to_inc ,) + inc_shape [1 :]
1275
+ inc_shape = (n_to_inc , * inc_shape [1 :])
1276
1276
1277
1277
# Symbolic variable with increment value.
1278
1278
inc_var_static_shape = tuple (
@@ -2822,15 +2822,15 @@ def bcast_shape_tuple(x):
2822
2822
(np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )), test_idx [:2 ]),
2823
2823
(
2824
2824
np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2825
- test_idx [:2 ] + ( slice (None , None ), ),
2825
+ ( * test_idx [:2 ], slice (None , None )),
2826
2826
),
2827
2827
(
2828
2828
np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2829
- (slice (None , None ),) + test_idx [:1 ],
2829
+ (slice (None , None ), * test_idx [:1 ]) ,
2830
2830
),
2831
2831
(
2832
2832
np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2833
- (slice (None , None ), None ) + test_idx [1 :2 ],
2833
+ (slice (None , None ), None , * test_idx [1 :2 ]) ,
2834
2834
),
2835
2835
(
2836
2836
np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
@@ -2842,15 +2842,15 @@ def bcast_shape_tuple(x):
2842
2842
),
2843
2843
(
2844
2844
np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2845
- test_idx [:1 ] + ( slice (None , None ),) + test_idx [1 :2 ],
2845
+ ( * test_idx [:1 ], slice (None , None ), * test_idx [1 :2 ]) ,
2846
2846
),
2847
2847
(
2848
2848
np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2849
- test_idx [:1 ] + ( slice (None , None ),) + test_idx [1 :2 ] + ( slice (None , None ), ),
2849
+ ( * test_idx [:1 ], slice (None , None ), * test_idx [1 :2 ], slice (None , None )),
2850
2850
),
2851
2851
(
2852
2852
np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2853
- test_idx [:1 ] + ( None ,) + test_idx [1 :2 ],
2853
+ ( * test_idx [:1 ], None , * test_idx [1 :2 ]) ,
2854
2854
),
2855
2855
(np .arange (np .prod ((5 , 4 ))).reshape ((5 , 4 )), ([1 , 3 , 2 ], slice (1 , 3 ))),
2856
2856
(np .arange (np .prod ((5 , 4 ))).reshape ((5 , 4 )), (slice (1 , 3 ), [1 , 3 , 2 ])),
0 commit comments