Skip to content
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.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'tensorrt_bindings.tensorrt.INetworkDefinition' object has no attribute 'add_convolution'. Did you mean: 'add_convolution_nd'? #920

Open
AWallyAllah opened this issue Mar 28, 2024 · 2 comments

Comments

@AWallyAllah
Copy link

I'm converting a PyTorch model with MobileNetV2 backbone, However I get this error:

AttributeError: 'tensorrt_bindings.tensorrt.INetworkDefinition' object has no attribute 'add_convolution'. Did you mean: 'add_convolution_nd'?

Versions:

  • tensorrt==10.0.0b6
  • torch2trt==0.4.0
  • CUDA 11.5, V11.5.119
  • Python 3.10.12
@xmdszzz
Copy link

xmdszzz commented Apr 1, 2024

@AWallyAllah hey bro, i checked the latest release notes, v0.4.0 only supports up to TensorRT 8, so TensorRT10 is not supported, and you should change the TRT's version.

@jaybdub
Copy link
Contributor

jaybdub commented May 6, 2024

Hi @AWallyAllah , @xmdszzz,

We've just added support for TensorRT 10 in the master branch.

Could you try this?

Let me know if you run into any issues or this works for you.

Best,
John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants