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
37bd11df
Commit
37bd11df
authored
May 17, 2019
by
Sergey Zagoruyko
Committed by
Francisco Massa
May 17, 2019
Browse files
Rename `_resnet` arguments (#910)
parent
90771646
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/models/resnet.py
torchvision/models/resnet.py
+2
-2
No files found.
torchvision/models/resnet.py
View file @
37bd11df
...
@@ -204,8 +204,8 @@ class ResNet(nn.Module):
...
@@ -204,8 +204,8 @@ class ResNet(nn.Module):
return
x
return
x
def
_resnet
(
arch
,
inplanes
,
p
la
ne
s
,
pretrained
,
progress
,
**
kwargs
):
def
_resnet
(
arch
,
block
,
la
yer
s
,
pretrained
,
progress
,
**
kwargs
):
model
=
ResNet
(
inplanes
,
p
la
ne
s
,
**
kwargs
)
model
=
ResNet
(
block
,
la
yer
s
,
**
kwargs
)
if
pretrained
:
if
pretrained
:
state_dict
=
load_state_dict_from_url
(
model_urls
[
arch
],
state_dict
=
load_state_dict_from_url
(
model_urls
[
arch
],
progress
=
progress
)
progress
=
progress
)
...
...
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