You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🐛 [Bug] RuntimeError: linear convolution has bias of type <class 'tensorrt.tensorrt.ITensor'>, Expect Optional[Tensor] when using torch_tensorrt as backend in torch.compile
#2506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Hi @airalcorn2 the PointNet() model is passing on my end with model_opt = torch.compile(model, backend="torch_tensorrt"). May I please know what is the torch version and the torch_tensorrt version you are using?
Because the torch_tensorrt seems obsolete and the above should have been fixed in this - #1972
I was using PyTorch 2.0.1 and Torch-TensorRT 1.4.0, which is the latest Torch-TensorRT release and was released before #1972 was merged. Should users default to using the version in main?
Bug Description
When trying to compile a simple PyTorch module with
torch.compile(model, backend="torch_tensorrt")
, I get:I don't get any errors when using
torch.compile(model)
ortorch_tensorrt.compile(model, inputs=inputs)
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Environment
1.4.0
2.0.1+cu117
conda
,pip
,libtorch
, source):pip
Additional context
The text was updated successfully, but these errors were encountered: