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
b70e333a
Unverified
Commit
b70e333a
authored
Mar 11, 2020
by
Lutz Roeder
Committed by
GitHub
Mar 11, 2020
Browse files
Remove 'downsample' constants (#1721) (#1923)
parent
43e94b39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
+0
-3
torchvision/models/resnet.py
torchvision/models/resnet.py
+0
-2
torchvision/models/video/resnet.py
torchvision/models/video/resnet.py
+0
-1
No files found.
torchvision/models/resnet.py
View file @
b70e333a
...
...
@@ -34,7 +34,6 @@ def conv1x1(in_planes, out_planes, stride=1):
class
BasicBlock
(
nn
.
Module
):
expansion
=
1
__constants__
=
[
'downsample'
]
def
__init__
(
self
,
inplanes
,
planes
,
stride
=
1
,
downsample
=
None
,
groups
=
1
,
base_width
=
64
,
dilation
=
1
,
norm_layer
=
None
):
...
...
@@ -75,7 +74,6 @@ 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
):
...
...
torchvision/models/video/resnet.py
View file @
b70e333a
...
...
@@ -81,7 +81,6 @@ class Conv3DNoTemporal(nn.Conv3d):
class
BasicBlock
(
nn
.
Module
):
__constants__
=
[
'downsample'
]
expansion
=
1
def
__init__
(
self
,
inplanes
,
planes
,
conv_builder
,
stride
=
1
,
downsample
=
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