facebookresearch / DomainBed

DomainBed is a suite to test domain generalization algorithms
MIT License
1.42k stars 299 forks source link

Fix running on CPU #29

Closed daysm closed 4 years ago

daysm commented 4 years ago

Some algorithms did not work on CPU since they tried to create tensors on the GPU. For those tensors, I replaced .cuda() with .to(device).

facebook-github-bot commented 4 years ago

Hi @daysm!

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

facebook-github-bot commented 4 years ago

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!