Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
b0dbbd7a
"tests/python/common/transforms/test_transform.py" did not exist on "9fee20b91dba3804a7a19f327b2b1d2407d93874"
Unverified
Commit
b0dbbd7a
authored
May 09, 2022
by
Philip Meier
Committed by
GitHub
May 09, 2022
Browse files
Fix mypy job failing (#5970)
parent
970ba355
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
torchvision/models/_api.py
torchvision/models/_api.py
+1
-2
No files found.
torchvision/models/_api.py
View file @
b0dbbd7a
import
importlib
import
importlib
import
inspect
import
inspect
import
sys
import
sys
from
collections
import
OrderedDict
from
dataclasses
import
dataclass
,
fields
from
dataclasses
import
dataclass
,
fields
from
inspect
import
signature
from
inspect
import
signature
from
typing
import
Any
,
Callable
,
Dict
,
cast
from
typing
import
Any
,
Callable
,
Dict
,
cast
...
@@ -60,7 +59,7 @@ class WeightsEnum(StrEnum):
...
@@ -60,7 +59,7 @@ class WeightsEnum(StrEnum):
)
)
return
obj
return
obj
def
get_state_dict
(
self
,
progress
:
bool
)
->
OrderedDict
:
def
get_state_dict
(
self
,
progress
:
bool
)
->
Dict
[
str
,
Any
]
:
return
load_state_dict_from_url
(
self
.
url
,
progress
=
progress
)
return
load_state_dict_from_url
(
self
.
url
,
progress
=
progress
)
def
__repr__
(
self
)
->
str
:
def
__repr__
(
self
)
->
str
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment