Skip to content

Commit cbd415b

Browse files
committed
fix
1 parent 72947c5 commit cbd415b

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
@@ -347,9 +347,10 @@ def _populate_trt_builder_config(
347347
self.compilation_settings.tiling_optimization_level
348348
]
349349

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

354355
return builder_config
355356

0 commit comments

Comments
 (0)