TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

🐛 [Bug] The lower_example.py Is Broken In nvcr.io/nvidia/pytorch:25.10-py3

Open leimao opened this issue 2 months ago • 3 comments

Bug Description

The lower_example.py Is Broken In nvcr.io/nvidia/pytorch:25.10-py3.

To Reproduce

  1. Run NVIDIA PyTorch Docker container using docker run -it --rm --gpus all -v $(pwd):/mnt -w /mnt nvcr.io/nvidia/pytorch:25.10-py3.
  2. Run lower_example.py copied from the main branch (https://github.com/pytorch/TensorRT/blob/a834c02c67b6f4727ad269fe94c5005c759ddb69/examples/fx/lower_example.py).
  3. Got the error: AttributeError: 'tensorrt.tensorrt.INetworkDefinition' object has no attribute 'has_explicit_precision'.

Expected behavior

There shall be no error when running the examples in NVIDIA PyTorch Docker container.

Environment

Build information about Torch-TensorRT can be found by turning on debug messages

See the NVIDIA PyTorch Docker container.

Additional context

N/A

leimao avatar Nov 16 '25 22:11 leimao

@leimao the FX frontend is deprecated and has been superseded by the Dynamo frontend. Are you seeing this issue when using dynamo?

narendasan avatar Nov 17 '25 03:11 narendasan

@leimao the FX frontend is deprecated and has been superseded by the Dynamo frontend. Are you seeing this issue when using dynamo?

@narendasan I am new to Torch-TensorRT. Is there any documentation describing such deprecation? The Dynamo frontend seems to have worked. But since it is not completely removed, I really would like to run some performance comparisons between these two.

leimao avatar Nov 17 '25 04:11 leimao

https://github.com/pytorch/TensorRT/releases/tag/v2.9.0 (Deprecations)

narendasan avatar Nov 18 '25 05:11 narendasan