File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,7 @@ def contains_metadata(gm: torch.fx.GraphModule) -> bool:
395395 verbose=settings.debug,
396396 min_block_size=settings.min_block_size,
397397 torch_executed_ops=settings.torch_executed_ops,
398+ require_full_compilation=settings.require_full_compilation,
398399 )
399400 except torch.fx.passes.splitter_base.FxNetSplitterInternalError:
400401 logger.error(
@@ -413,6 +414,7 @@ def contains_metadata(gm: torch.fx.GraphModule) -> bool:
413414 verbose=settings.debug,
414415 min_block_size=settings.min_block_size,
415416 torch_executed_ops=settings.torch_executed_ops,
417+ require_full_compilation=settings.require_full_compilation,
416418 )
417419
418420 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(
107107 torchtrt_inputs = prepare_inputs(
108108 torch_inputs, disable_memory_format_check=True
109109 )
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+ )
110114 trt_compiled = compile_module(
111115 gm,
112116 torchtrt_inputs,
You can’t perform that action at this time.
0 commit comments