-
Notifications
You must be signed in to change notification settings - Fork 681
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
Can't convert Vision Transformer from timm - TypeError: add_constant(): incompatible function arguments. #882
Comments
Same error here using torch2trt version: [36656b6]. Executing the python script:
Gives the following error:
I tried these solutions from other threads:
What could be the cause of this error? Since I could not find the solution form torch2trt, I am moving on to try torch->onnx -> engine |
@jakubhejhal @shanek16 The
|
I solved the above error according to your suggestion, but encountered new problems during the conversion process |
The Last Error occurs in the slice layer of the network, debug your code and check the inputs and outputs of the slice layers you are using during conversion. for more info about how slice layers work, look into this: Slice Layer |
The following code:
Gives the following error:
I'm using:
The text was updated successfully, but these errors were encountered: