File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
py/torch_tensorrt/dynamo/lowering Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -171,20 +171,6 @@ def select_scatter_decomposition(
171
171
dim : int ,
172
172
index : int ,
173
173
) -> torch .Tensor :
174
- # input_tensor.shape[dim] = torch.le(index, input_tensor.shape[dim])
175
- # check if the dim is less than shape
176
- if input_tensor .shape [dim ] < index :
177
- raise AssertionError ("The index should not be greater than dim" )
178
-
179
- # expanding the src_tensor to have the same dimension as input_tensor
180
- # check if the dimension of the src tensor is same as slice tensor
181
- select_tensor = torch .select (input_tensor , dim , index )
182
-
183
- if select_tensor .shape != src_tensor .shape :
184
- raise AssertionError (
185
- "The slice tensor shape should be equal to the src tensor shape"
186
- )
187
-
188
174
unbind_tensors = torch .unbind (input_tensor , dim )
189
175
unbind_tensors_list = list (unbind_tensors )
190
176
unbind_tensors_list [index ] = src_tensor
You can’t perform that action at this time.
0 commit comments