Resnet18_test / model.py
RoyalJ's picture
Upload quantized model and evaluation results
4f8a34f
raw
history blame contribute delete
188 Bytes
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
def get_model():
from torchvision.models import resnet18
return resnet18(weights='IMAGENET1K_V1').to(device)