@@ -68,7 +68,7 @@ def __init__(
6868 use_python_runtime : bool = _defaults .USE_PYTHON_RUNTIME ,
6969 immutable_weights : bool = False ,
7070 strict : bool = True ,
71- allow_complex_guards_as_runtime_asserts : bool = False ,
71+ prefer_deferred_runtime_asserts_over_guards : bool = False ,
7272 weight_streaming_budget : Optional [int ] = None ,
7373 enabled_precisions : Optional [Set [Union [torch .dtype , dtype ]]] = None ,
7474 ** kwargs : Any ,
@@ -134,8 +134,8 @@ def __init__(
134134 self .kwarg_inputs : dict [str , Any ] = {}
135135 self .additional_settings = kwargs
136136 self .strict = strict
137- self .allow_complex_guards_as_runtime_asserts = (
138- allow_complex_guards_as_runtime_asserts
137+ self .prefer_deferred_runtime_asserts_over_guards = (
138+ prefer_deferred_runtime_asserts_over_guards
139139 )
140140 self .use_python_runtime = use_python_runtime
141141 self .trt_device = to_torch_tensorrt_device (device )
@@ -312,14 +312,14 @@ def refit_gm(self) -> None:
312312 def get_exported_program (self ) -> torch .export .ExportedProgram :
313313
314314 def export_fn () -> torch .export .ExportedProgram :
315- if self .allow_complex_guards_as_runtime_asserts :
315+ if self .prefer_deferred_runtime_asserts_over_guards :
316316 return _export (
317317 self .original_model ,
318318 self .arg_inputs ,
319319 kwargs = self .kwarg_inputs ,
320320 dynamic_shapes = self ._get_total_dynamic_shapes (),
321321 strict = self .strict ,
322- allow_complex_guards_as_runtime_asserts = self .allow_complex_guards_as_runtime_asserts ,
322+ prefer_deferred_runtime_asserts_over_guards = self .prefer_deferred_runtime_asserts_over_guards ,
323323 )
324324 else :
325325 return torch .export .export (
0 commit comments