Commit 37bd11df authored by Sergey Zagoruyko's avatar Sergey Zagoruyko Committed by Francisco Massa
Browse files

Rename `_resnet` arguments (#910)

parent 90771646
......@@ -204,8 +204,8 @@ class ResNet(nn.Module):
return x
def _resnet(arch, inplanes, planes, pretrained, progress, **kwargs):
model = ResNet(inplanes, planes, **kwargs)
def _resnet(arch, block, layers, pretrained, progress, **kwargs):
model = ResNet(block, layers, **kwargs)
if pretrained:
state_dict = load_state_dict_from_url(model_urls[arch],
progress=progress)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment