RuntimeError: Could not run 'torchvision::roi_align' with arguments from the 'CUDA' backend. #8

Closed
opened 2026-01-29 21:35:55 +00:00 by claunia · 2 comments
Owner

Originally created by @lxy2017 on GitHub (Jun 21, 2021).

When I train the code, I get the following error

RuntimeError: Could not run 'torchvision::roi_align' with arguments from the 'CUDA' backend. 'torchvision::roi_align' is only available for these backends: [CPU, BackendSelect, Named, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, Autocast, Batched, VmapMode].

image

Originally created by @lxy2017 on GitHub (Jun 21, 2021). When I train the code, I get the following error RuntimeError: Could not run 'torchvision::roi_align' with arguments from the 'CUDA' backend. 'torchvision::roi_align' is only available for these backends: [CPU, BackendSelect, Named, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, Autocast, Batched, VmapMode]. ![image](https://user-images.githubusercontent.com/9693098/122701302-7de87d00-d27f-11eb-8376-77149695cc22.png)
Author
Owner

@xinntao commented on GitHub (Jun 23, 2021):

I have not encountered this issue.
May check the torchvision ? (the version in my env is torchvision 0.8.2)

@xinntao commented on GitHub (Jun 23, 2021): I have not encountered this issue. May check the torchvision ? (the version in my env is torchvision 0.8.2)
Author
Owner

@lxy2017 commented on GitHub (Jun 24, 2021):

I have not encountered this issue.
May check the torchvision ? (the version in my env is torchvision 0.8.2)

Thanks!
It works for torchvision 0.8.2

@lxy2017 commented on GitHub (Jun 24, 2021): > I have not encountered this issue. > May check the torchvision ? (the version in my env is torchvision 0.8.2) Thanks! It works for torchvision 0.8.2
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#8