🐛 [Bug] The lower_example.py Is Broken In nvcr.io/nvidia/pytorch:25.10-py3
Bug Description
The lower_example.py Is Broken In nvcr.io/nvidia/pytorch:25.10-py3.
To Reproduce
- Run NVIDIA PyTorch Docker container using
docker run -it --rm --gpus all -v $(pwd):/mnt -w /mnt nvcr.io/nvidia/pytorch:25.10-py3. - Run
lower_example.pycopied from the main branch (https://github.com/pytorch/TensorRT/blob/a834c02c67b6f4727ad269fe94c5005c759ddb69/examples/fx/lower_example.py). - 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 the FX frontend is deprecated and has been superseded by the Dynamo frontend. Are you seeing this issue when using dynamo?
@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.
https://github.com/pytorch/TensorRT/releases/tag/v2.9.0 (Deprecations)