@@ -166,7 +166,7 @@ def array_split(ary, indices_or_sections, axis=0):
166
166
167
167
result = _impl .split_helper (tensor , indices_or_sections , axis )
168
168
169
- return tuple (maybe_set_base (_ , base ) for _ in result )
169
+ return tuple (maybe_set_base (x , base ) for x in result )
170
170
171
171
172
172
def split (ary , indices_or_sections , axis = 0 ):
@@ -176,7 +176,7 @@ def split(ary, indices_or_sections, axis=0):
176
176
177
177
result = _impl .split_helper (tensor , indices_or_sections , axis , strict = True )
178
178
179
- return tuple (maybe_set_base (_ , base ) for _ in result )
179
+ return tuple (maybe_set_base (x , base ) for x in result )
180
180
181
181
182
182
def hsplit (ary , indices_or_sections ):
@@ -190,7 +190,7 @@ def hsplit(ary, indices_or_sections):
190
190
191
191
result = _impl .split_helper (tensor , indices_or_sections , axis , strict = True )
192
192
193
- return tuple (maybe_set_base (_ , base ) for _ in result )
193
+ return tuple (maybe_set_base (x , base ) for x in result )
194
194
195
195
196
196
def vsplit (ary , indices_or_sections ):
@@ -201,7 +201,7 @@ def vsplit(ary, indices_or_sections):
201
201
raise ValueError ("vsplit only works on arrays of 2 or more dimensions" )
202
202
result = _impl .split_helper (tensor , indices_or_sections , 0 , strict = True )
203
203
204
- return tuple (maybe_set_base (_ , base ) for _ in result )
204
+ return tuple (maybe_set_base (x , base ) for x in result )
205
205
206
206
207
207
def dsplit (ary , indices_or_sections ):
@@ -212,7 +212,7 @@ def dsplit(ary, indices_or_sections):
212
212
raise ValueError ("dsplit only works on arrays of 3 or more dimensions" )
213
213
result = _impl .split_helper (tensor , indices_or_sections , 2 , strict = True )
214
214
215
- return tuple (maybe_set_base (_ , base ) for _ in result )
215
+ return tuple (maybe_set_base (x , base ) for x in result )
216
216
217
217
218
218
def kron (a , b ):
0 commit comments