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

Import ERROR #38

Open
jg0014 opened this issue Jun 11, 2024 · 1 comment
Open

Import ERROR #38

jg0014 opened this issue Jun 11, 2024 · 1 comment

Comments

@jg0014
Copy link

jg0014 commented Jun 11, 2024

tensorrt 8.4.1.5

import torch2trt_dynamic
Traceback (most recent call last):
File "", line 1, in
File "/home_orin/anaconda3/envs/track2/lib/python3.8/site-packages/torch2trt_dynamic/init.py", line 3, in
from .converters import * # noqa: F401,F403
File "/home_orin/anaconda3/envs/track2/lib/python3.8/site-packages/torch2trt_dynamic/converters/init.py", line 19, in
from . import grid_sample # noqa: F401
File "/home_orin/anaconda3/envs/track2/lib/python3.8/site-packages/torch2trt_dynamic/converters/grid_sample.py", line 8, in
bicubic=trt.ResizeMode.CUBIC)
AttributeError: type object 'tensorrt.tensorrt.ResizeMode' has no attribute 'CUBIC'

@grimoire
Copy link
Owner

Update tensorrt version or just remove bicubic resize model in torch2trt_dynamic/converters/grid_sample.py.

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

2 participants