Unverified Commit 92fe95be authored by Kai Chen's avatar Kai Chen Committed by GitHub
Browse files

bug fix for backward compatibility (#643)

parent 1ec92ef4
...@@ -108,7 +108,6 @@ class Bottleneck(nn.Module): ...@@ -108,7 +108,6 @@ class Bottleneck(nn.Module):
self.planes = planes self.planes = planes
self.stride = stride self.stride = stride
self.dilation = dilation self.dilation = dilation
self.downsample = downsample
self.style = style self.style = style
self.with_cp = with_cp self.with_cp = with_cp
self.conv_cfg = conv_cfg self.conv_cfg = conv_cfg
...@@ -185,6 +184,7 @@ class Bottleneck(nn.Module): ...@@ -185,6 +184,7 @@ class Bottleneck(nn.Module):
self.add_module(self.norm3_name, norm3) self.add_module(self.norm3_name, norm3)
self.relu = nn.ReLU(inplace=True) self.relu = nn.ReLU(inplace=True)
self.downsample = downsample
@property @property
def norm1(self): def norm1(self):
......
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