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
MMCV
Commits
867d5a50
Commit
867d5a50
authored
Oct 09, 2018
by
yl-1993
Browse files
consistent param list of block
parent
e363982a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mmcv/cnn/resnet.py
mmcv/cnn/resnet.py
+3
-1
No files found.
mmcv/cnn/resnet.py
View file @
867d5a50
...
...
@@ -28,7 +28,8 @@ class BasicBlock(nn.Module):
stride
=
1
,
dilation
=
1
,
downsample
=
None
,
style
=
'pytorch'
):
style
=
'pytorch'
,
with_cp
=
False
):
super
(
BasicBlock
,
self
).
__init__
()
self
.
conv1
=
conv3x3
(
inplanes
,
planes
,
stride
,
dilation
)
self
.
bn1
=
nn
.
BatchNorm2d
(
planes
)
...
...
@@ -38,6 +39,7 @@ class BasicBlock(nn.Module):
self
.
downsample
=
downsample
self
.
stride
=
stride
self
.
dilation
=
dilation
assert
not
with_cp
def
forward
(
self
,
x
):
residual
=
x
...
...
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