-
Notifications
You must be signed in to change notification settings - Fork 34
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
Error number of channels in input tensor to a convolution layer must not be dynamic #27
Comments
Hi, according to the error log you provided, is there some structure like |
Thanks for fast reply , no there is no such structure.
I think that it is due to tensorrt version I built the model in trt and when I to inference there is the error.
And the error is:
When I change the input shape and profile shape to :
Then it works properly.
|
Hi. I'm trying using torch2trt_dynamic to convert models from torch to trt. I got an unexpected issue.
To reproduce it I use lenet5 like neural network.
I got the next error:
I tried to deal with it and found that if I change opt_shape_param it works:
@grimoire So I do not understand why this error occurs in your example opt shape param has different shapes for height and width?
TensorRT Version: 7.1.3
GPU Type: GeForce RTX 2080 Ti
Nvidia Driver Version: 470.103.01
CUDA Version: 10.2
CUDNN Version: 8.0.5
Operating System + Version: Ubuntu 18.04
Python Version: 3.6.9
PyTorch Version: 1.8.1
The text was updated successfully, but these errors were encountered: