Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions torchvision/models/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import importlib
import inspect
import sys
from collections.abc import Iterable, Mapping
from collections.abc import Iterable
from dataclasses import dataclass
from enum import Enum
from functools import partial
Expand Down Expand Up @@ -87,7 +87,7 @@ def verify(cls, obj: Any) -> Any:
)
return obj

def get_state_dict(self, *args: Any, **kwargs: Any) -> Mapping[str, Any]:
def get_state_dict(self, *args: Any, **kwargs: Any) -> dict[str, Any]:
return load_state_dict_from_url(self.url, *args, **kwargs)

def __repr__(self) -> str:
Expand Down