File tree 1 file changed +5
-5
lines changed
py/torch_tensorrt/dynamo/lowering
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -203,18 +203,18 @@ def slice_scatter_decomposition(
203
203
if step is None :
204
204
step = 1
205
205
206
- # Ensure start, end, and step are all integers
207
- assert isinstance (start , int ), "start must be an integer"
208
- assert isinstance (end , int ), "end must be an integer"
209
- assert isinstance (step , int ), "step must be an integer"
210
-
211
206
src_dim = src_tensor .shape
212
207
# step == 0 is not a valid torch case
213
208
# also src_dim should be equal to slice dimension
214
209
215
210
if start == 0 and end == dim_size and step == 1 :
216
211
return src_tensor
217
212
213
+ # Ensure start, end, and step are all integers
214
+ assert isinstance (start , int ), "start must be an integer"
215
+ assert isinstance (end , int ), "end must be an integer"
216
+ assert isinstance (step , int ), "step must be an integer"
217
+
218
218
cat_tensors = []
219
219
index_tensor_shape = []
220
220
for i , src_each_dim in enumerate (list (src_dim )):
You can’t perform that action at this time.
0 commit comments