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
3c1ab2c1
Commit
3c1ab2c1
authored
Sep 17, 2019
by
eellison
Committed by
Francisco Massa
Sep 17, 2019
Browse files
make resnext scriptable (#1343)
parent
e8b830fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
test/test_models.py
test/test_models.py
+1
-1
torchvision/models/resnet.py
torchvision/models/resnet.py
+1
-0
No files found.
test/test_models.py
View file @
3c1ab2c1
...
...
@@ -29,7 +29,7 @@ def get_available_video_models():
torchub_models
=
{
"deeplabv3_resnet101"
:
False
,
"mobilenet_v2"
:
True
,
"resnext50_32x4d"
:
Fals
e
,
"resnext50_32x4d"
:
Tru
e
,
"fcn_resnet101"
:
False
,
"googlenet"
:
False
,
"densenet121"
:
False
,
...
...
torchvision/models/resnet.py
View file @
3c1ab2c1
...
...
@@ -75,6 +75,7 @@ class BasicBlock(nn.Module):
class
Bottleneck
(
nn
.
Module
):
expansion
=
4
__constants__
=
[
'downsample'
]
def
__init__
(
self
,
inplanes
,
planes
,
stride
=
1
,
downsample
=
None
,
groups
=
1
,
base_width
=
64
,
dilation
=
1
,
norm_layer
=
None
):
...
...
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