@@ -56,7 +56,7 @@ def forward(self, x):
5656 enable_autocast = True ,
5757 autocast_low_precision_type = torch .float16 ,
5858 autocast_excluded_nodes = {"^conv1$" , "relu" },
59- autocast_excluded_ops = {torch .ops .aten .flatten .using_ints },
59+ autocast_excluded_ops = {" torch.ops.aten.flatten.using_ints" },
6060 autocast_max_output_threshold = 512 ,
6161 autocast_max_depth_of_reduction = None ,
6262 autocast_calibration_dataloader = calibration_dataloader ,
@@ -147,7 +147,7 @@ def forward(self, x):
147147 enable_autocast = True ,
148148 autocast_low_precision_type = torch .bfloat16 ,
149149 autocast_excluded_nodes = {"^conv1$" , "relu" },
150- autocast_excluded_ops = {torch .ops .aten .flatten .using_ints },
150+ autocast_excluded_ops = {" torch.ops.aten.flatten.using_ints" },
151151 autocast_max_output_threshold = 512 ,
152152 autocast_max_depth_of_reduction = None ,
153153 autocast_calibration_dataloader = calibration_dataloader ,
@@ -220,13 +220,13 @@ def forward(self, x):
220220 ep .module (),
221221 arg_inputs = inputs ,
222222 min_block_size = 1 ,
223- use_python_runtime = True ,
223+ use_python_runtime = False ,
224224 use_explicit_typing = True ,
225225 # Torch-TensorRT's autocast doesn't affect layers inside Pytorch autocast
226226 enable_autocast = True ,
227227 autocast_low_precision_type = torch .bfloat16 ,
228228 autocast_excluded_nodes = {"^conv1$" , "relu" },
229- autocast_excluded_ops = {torch .ops .aten .flatten .using_ints },
229+ autocast_excluded_ops = {" torch.ops.aten.flatten.using_ints" },
230230 autocast_max_output_threshold = 512 ,
231231 autocast_max_depth_of_reduction = None ,
232232 autocast_calibration_dataloader = calibration_dataloader ,
@@ -328,13 +328,13 @@ def forward(self, x, y):
328328 ep ,
329329 arg_inputs = inputs ,
330330 min_block_size = 1 ,
331- use_python_runtime = True ,
331+ use_python_runtime = False ,
332332 use_explicit_typing = True ,
333333 # Torch-TensorRT's autocast doesn't affect layers inside Pytorch autocast
334334 enable_autocast = True ,
335335 autocast_low_precision_type = torch .bfloat16 ,
336336 autocast_excluded_nodes = {"^conv1$" , "relu" },
337- autocast_excluded_ops = {torch .ops .aten .flatten .using_ints },
337+ autocast_excluded_ops = {" torch.ops.aten.flatten.using_ints" },
338338 autocast_max_output_threshold = 512 ,
339339 autocast_max_depth_of_reduction = None ,
340340 autocast_calibration_dataloader = calibration_dataloader ,
0 commit comments