-
Notifications
You must be signed in to change notification settings - Fork 351
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
🐛 [Bug] cannot convert x.to(torch.uint8) #3247
Labels
bug
Something isn't working
Comments
braindevices
changed the title
🐛 [Bug] cannot do y.to(torch.uint8)
🐛 [Bug] cannot convert x.to(torch.uint8)
Oct 18, 2024
Hi, the above complains because the copy validator in the converter does not support uint8 as a valid input data type. That is because TRT does not support uint8 in its operations. For example if you run the below code (note that there are some changes in the API names) for onnx conversion and then loading in TRT
The above will fail with
since it won't be able to process the uint8 input |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
it report _to_copy is not supported, when we use things like
x.to(torch.uint8)
But actually tensorrt support this operation, if we convert to onnx then load onnx in tensorrt
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Environment
conda
,pip
,libtorch
, source): pipAdditional context
The text was updated successfully, but these errors were encountered: