Skip to content

Commit 9e008fd

Browse files
committed
chore: Add warning for non-empty torch executed modules
1 parent dfae195 commit 9e008fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

py/torch_tensorrt/dynamo/_compiler.py

+6
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ def compile(
166166
if debug:
167167
set_log_level(logger.parent, logging.DEBUG)
168168

169+
if torch_executed_modules is not None and torch_executed_modules:
170+
logger.warning(
171+
f"Detected torch_executed_modules was non-empty: {torch_executed_modules}"
172+
"\nThis feature is unimplemented in Torch-TRT Dynamo currently."
173+
)
174+
169175
if not isinstance(inputs, collections.abc.Sequence):
170176
inputs = [inputs]
171177

0 commit comments

Comments
 (0)