application_vnd.jupyter.stderr_output_2.png application_vnd.jupyter.stderr_output_3.png text_plain_output_1.png
from torchsummary import summary

import torch

import torch

from torchvision import models
from torchsummary import summary
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
model = RN_BCNN().to(device)
summary(model, (3, 224, 224))

device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
print(device)