We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09a6089 commit b921ee6Copy full SHA for b921ee6
torchvision/models/_api.py
@@ -1,7 +1,6 @@
1
import importlib
2
import inspect
3
import sys
4
-from collections import OrderedDict
5
from dataclasses import dataclass, fields
6
from inspect import signature
7
from typing import Any, Callable, Dict, cast
@@ -60,7 +59,7 @@ def verify(cls, obj: Any) -> Any:
60
59
)
61
return obj
62
63
- def get_state_dict(self, progress: bool) -> OrderedDict:
+ def get_state_dict(self, progress: bool) -> Dict[str, Any]:
64
return load_state_dict_from_url(self.url, progress=progress)
65
66
def __repr__(self) -> str:
0 commit comments