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
3f4dcae6
Unverified
Commit
3f4dcae6
authored
Nov 16, 2022
by
Vasilis Vryniotis
Committed by
GitHub
Nov 16, 2022
Browse files
Fix MaxViT typing (#6929)
* Fix MaxViT typing * linter
parent
ad128b75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
torchvision/models/maxvit.py
torchvision/models/maxvit.py
+3
-2
No files found.
torchvision/models/maxvit.py
View file @
3f4dcae6
import
math
import
math
from
collections
import
OrderedDict
from
functools
import
partial
from
functools
import
partial
from
typing
import
Any
,
Callable
,
List
,
Optional
,
OrderedDict
,
Sequence
,
Tuple
from
typing
import
Any
,
Callable
,
List
,
Optional
,
Sequence
,
Tuple
import
numpy
as
np
import
numpy
as
np
import
torch
import
torch
...
@@ -426,7 +427,7 @@ class MaxVitLayer(nn.Module):
...
@@ -426,7 +427,7 @@ class MaxVitLayer(nn.Module):
)
->
None
:
)
->
None
:
super
().
__init__
()
super
().
__init__
()
layers
:
OrderedDict
[
str
,
Any
]
=
OrderedDict
()
# type: ignore
layers
:
OrderedDict
=
OrderedDict
()
# convolutional layer
# convolutional layer
layers
[
"MBconv"
]
=
MBConv
(
layers
[
"MBconv"
]
=
MBConv
(
...
...
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