Skip to content

Commit e339583

Browse files
committed
added fx deprecation notice
1 parent 863eece commit e339583

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

py/torch_tensorrt/_compile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ def compile(
243243
)
244244
return compiled_ts_module
245245
elif target_ir == _IRType.fx:
246+
warnings.warn(
247+
"FX frontend is deprecated. Please use the Dynamo frontend instead.",
248+
DeprecationWarning,
249+
stacklevel=2,
250+
)
246251
if (
247252
torch.float16 in enabled_precisions_set
248253
or torch_tensorrt.dtype.half in enabled_precisions_set

0 commit comments

Comments
 (0)