Skip to content

Commit 9acc3ee

Browse files
committed
Expose all options
1 parent 66b55be commit 9acc3ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/models/_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def verify(cls, obj: Any) -> Any:
8585
)
8686
return obj
8787

88-
def get_state_dict(self, progress: bool) -> Mapping[str, Any]:
89-
return load_state_dict_from_url(self.url, progress=progress, check_hash=True)
88+
def get_state_dict(self, *args: Any, **kwargs: Any) -> Mapping[str, Any]:
89+
return load_state_dict_from_url(self.url, *args, **kwargs)
9090

9191
def __repr__(self) -> str:
9292
return f"{self.__class__.__name__}.{self._name_}"

0 commit comments

Comments
 (0)