File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
py/torch_tensorrt/fx/passes Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ def replace_aten_op_with_indices(module: torch.fx.GraphModule) -> torch.fx.Graph
165
165
torch .ops .aten .max_pool3d_with_indices .default ,
166
166
torch .ops .aten .native_batch_norm .default ,
167
167
torch .ops .aten ._native_batch_norm_legit .default ,
168
- torch .ops .aten ._native_batch_norm_legit_no_training .default ,
169
168
):
170
169
modified = True
171
170
if len (n .users ) != 1 :
@@ -186,16 +185,6 @@ def replace_aten_op_with_indices(module: torch.fx.GraphModule) -> torch.fx.Graph
186
185
new_args = list (n .args )
187
186
new_args .append (False )
188
187
new_args = tuple (new_args )
189
- elif (
190
- n .target == torch .ops .aten ._native_batch_norm_legit_no_training .default
191
- ):
192
- new_op = torch .ops .aten .batch_norm
193
- new_args = list (n .args )
194
- new_args .append (False )
195
- # _native_batch_norm_legit_no_training doesn't take in a training arg (assumed to be false)
196
- # but batchnorm takes in a training arg at position 5.
197
- new_args .insert (5 , False )
198
- new_args = tuple (new_args )
199
188
200
189
getitem_node = next (iter (n .users ))
201
190
with module .graph .inserting_after (getitem_node ):
You can’t perform that action at this time.
0 commit comments