-
-
Save cosmic-cortex/096fea657dc8a184fb7dd63a8205723d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
from torchvision.models import resnet34 | |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu') | |
model = resnet34(pretrained=True) | |
model = model.to(device) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment