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.py copied 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