-
Notifications
You must be signed in to change notification settings - Fork 365
🐛 [Bug] bug with torchvision.transforms.GaussianBlur #1526
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
Comments
I am a bit confused here, is the issue that Did you observe this in torch_tensorrt 1.3.0 / master as well? There was a recent patch that might address this: #1454 |
Hello and thanks for your answer. The problem is that it does not recognize torchvision.transforms.transforms.___torch_mangle_4.GaussianBlur when It should be recognized in the same way than first case. :) I did not tested it in v1.3.0. Could you test these toy example? |
Hello @narendasan, finally I managed to solve the problem by changing the logic of my code. Now there is something more (rare) happening. Error 1: trying not to convert the gaussian blur
Code to reproduce it
Error 2: Trying to convert the gaussian blur
and the output stay there stuck (after waiting 8 minutes) code to reproduce it
|
Tested in v1.1.0 and v1.2.0 |
We have fixed similar issue |
This issue has not seen activity for 90 days, Remove stale label or comment or this will be closed in 10 days |
Bug Description
Your test does not work correctly. I have two models using the torchvision.transforms.GaussianBlur and torch_executed_modules is not able to skip the operation in the second model.
To Reproduce
I have prepared a toy sample
Expected behavior
According to your api test, the second model should be correctly converted into tensorRT, skipping the no supported operation GaussianBlur.
Environment
conda
,pip
,libtorch
, source): pipAdditional context
This example can also be done with the resnet18, similar to your api test
The graphs have different names and then, torch_executed_modules = torchvision.models.resnet.BasicBlock may not be properly skipped.
The question is
How could I manage to skip the GaussianBlur in the second model? It seems that they can not exist at the same time
The text was updated successfully, but these errors were encountered: