Skip to content

πŸ› [Bug] The lower_example.py Is Broken In nvcr.io/nvidia/pytorch:25.10-py3Β #3901

@leimao

Description

@leimao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions