Projekt_AI-Automatyczny_saper/venv/Lib/site-packages/torchvision/models/utils.py
2021-06-01 17:38:31 +02:00

5 lines
151 B
Python

try:
from torch.hub import load_state_dict_from_url
except ImportError:
from torch.utils.model_zoo import load_url as load_state_dict_from_url