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