-
Notifications
You must be signed in to change notification settings - Fork 350
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] Expected input tensors to have type Half, found type float #2113
Comments
I dont see the torch-tensorrt code in the link you shared. @bowang007 Keep an eye on this, might be related to some of your PRs |
I'm also having this issue |
I also noticed a simple sum between 2 fp16 tensors implicitly cast them to a fp32 tensor. |
I'm also having this issue, how to slove it? |
I am encountering the same issue. |
This PR can help resolve above issue. |
@bowang007 Is there any update for your commit? It seems fail in a few check. Eagerly looking forward to your update. |
also having this issue! |
|
Hi @johnzlli , can you try using dynamo path instead? |
Thanks for your reply! Dynamo is a great work, but there is no way to export the compiled model. So that we have to still use torchscript. |
having similar issue! please fix this |
Bug Description
TensorRT throws error about fp32 tensors input despite I am using fp16 tensors as input.
I attached the file
IFRNet.py
adapted from https://github.com/ltkong218/IFRNet/blob/main/models/IFRNet.pyTo Reproduce
Steps to reproduce the behavior:
Expected behavior
Environment
conda
,pip
,libtorch
, source): Arch Linux AURAdditional context
IFRNet.py.gz
The text was updated successfully, but these errors were encountered: