Skip to content

Commit

Permalink
Remove 'downsample' constants (#1721) (#1923) (#2419)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #2419

Reviewed By: zhangguanheng66

Differential Revision: D22432605

Pulled By: fmassa

fbshipit-source-id: f677348d87fb7ee852d158222387313fd26d5dc3
  • Loading branch information
lutzroeder authored and facebook-github-bot committed Jul 8, 2020
1 parent 70503fa commit 2eddf2a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions torchvision/models/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -75,7 +74,6 @@ def forward(self, x):

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):
Expand Down
1 change: 0 additions & 1 deletion torchvision/models/video/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def get_downsample_stride(stride):

class BasicBlock(nn.Module):

__constants__ = ['downsample']
expansion = 1

def __init__(self, inplanes, planes, conv_builder, stride=1, downsample=None):
Expand Down

0 comments on commit 2eddf2a

Please sign in to comment.