Skip to content

Commit c9253c7

Browse files
committed
fix
1 parent d3eb817 commit c9253c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

py/torch_tensorrt/dynamo/conversion/_TRTInterpreter.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,10 @@ def _populate_trt_builder_config(
346346
self.compilation_settings.tiling_optimization_level
347347
]
348348

349-
builder_config.l2_limit_for_tiling = (
350-
self.compilation_settings.l2_limit_for_tiling
351-
)
349+
if self.compilation_settings.l2_limit_for_tiling != -1:
350+
builder_config.l2_limit_for_tiling = (
351+
self.compilation_settings.l2_limit_for_tiling
352+
)
352353

353354
return builder_config
354355

0 commit comments

Comments
 (0)