Skip to content

🐛 [Bug] Torch_tensorrt compile doesn’t support pretrained torchvision Mask_RCNN model. #1265

@Pradnya-Mundargi

Description

@Pradnya-Mundargi

Bug Description

Torch_tensorrt compile doesn’t support pretrained torchvision Mask_RCNN model.
Error:
RuntimeError:
temporary: the only valid use of a module is looking up an attribute but found = prim::SetAttr[name=“_has_warned”](%self, %178)
:

To Reproduce

Steps to reproduce the behavior:

  1. Please execute the .ipynb notebook attached below
    https://drive.google.com/file/d/1nN95csu4r9KQJhH8XaryGFYdBPiAKlqm/view

Expected behavior

Expected the pretained mask rcnn model from the torchvision module to compile.

Environment

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

  • TensorRT Version: 1.2.0a0
  • GPU Type: GeForce RTX 3070
  • Nvidia Driver Version: 470.141.03
  • CUDA Version: 11.4
  • Operating System + Version: Ubuntu 20.04
  • Python Version (if applicable): 3.8.13
  • TensorFlow Version (if applicable): -
  • PyTorch Version (if applicable): 1.13.0a0+08820cb
  • How you installed PyTorch (conda, pip, libtorch, source): pip [pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116]
  • Baremetal or Container (if container which image + tag): Nvidia NGC Container [nvcr.io/nvidia/pytorch:22.07-py3]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions