File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,7 @@ def contains_metadata(gm: torch.fx.GraphModule) -> bool:
375
375
verbose = settings .debug ,
376
376
min_block_size = settings .min_block_size ,
377
377
torch_executed_ops = settings .torch_executed_ops ,
378
+ require_full_compilation = settings .require_full_compilation ,
378
379
)
379
380
except torch .fx .passes .splitter_base .FxNetSplitterInternalError :
380
381
logger .error (
@@ -393,6 +394,7 @@ def contains_metadata(gm: torch.fx.GraphModule) -> bool:
393
394
verbose = settings .debug ,
394
395
min_block_size = settings .min_block_size ,
395
396
torch_executed_ops = settings .torch_executed_ops ,
397
+ require_full_compilation = settings .require_full_compilation ,
396
398
)
397
399
398
400
dryrun_tracker .unsupported_ops = supported_ops .unsupported_operators
Original file line number Diff line number Diff line change @@ -107,6 +107,10 @@ def _pretraced_backend(
107
107
torchtrt_inputs = prepare_inputs (
108
108
torch_inputs , disable_memory_format_check = True
109
109
)
110
+ if settings .require_full_compilation :
111
+ logger .warning (
112
+ "require_full_compilation arg is not applicable for torch.compile with backend='torch_tensorrt"
113
+ )
110
114
trt_compiled = compile_module (
111
115
gm ,
112
116
torchtrt_inputs ,
You can’t perform that action at this time.
0 commit comments