-
Notifications
You must be signed in to change notification settings - Fork 7k
MaskRCNN model doesn't work with torch.cuda.amp.autocast RuntimeError: Unrecognized tensor type ID: Autocast #2172
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
Please copy/paste code snippet for reproducing. |
Where model is: torchvision.models.detection.mask_rcnn.maskrcnn_resnet50_fpn |
@WaterKnight1998 Can you provide a more accessible code snippet? The above code seems part from your class object. |
|
I got URLError like this
|
Why? |
R-CNN models in torchvision now natively support autocast since the 0.7.0 release, see #2384 and https://github.com/pytorch/vision/releases/tag/v0.7.0 |
🐛 Bug
I am converting the model into FP16.
Using
torch.cuda.amp.autocast
. But it throws me an error:The text was updated successfully, but these errors were encountered: