Loading googlenet model

I’m testing different models over a dataset but I have an issue with googlenet not loading. I have the latest version of pytorch and all other models work.
I try to load googlenet using model = torchvision.models.googlenet(pretrained=True)
But I get the following error: AttributeError: module ‘torchvision.models’ has no attribute ‘googlenet’.
Could someone help me figure out what I’m doing wrong? Thanks

torchvision might be too old. Could you try to update it or build from source? It’s quite simple and is described here.


import torchvision
google_net = torchvision.models.inception_v3(pretrained=True)