Skip to content

Commit 464885e

Browse files
committed
See if we can avoid some model / layer pickle issues with the aa attr in ConvNormAct
1 parent 5fe5f9d commit 464885e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

timm/layers/conv_bn_act.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ def out_channels(self):
8282
def forward(self, x):
8383
x = self.conv(x)
8484
x = self.bn(x)
85-
if self.aa is not None:
85+
aa = getattr(self, 'aa', None)
86+
if aa is not None:
8687
x = self.aa(x)
8788
return x
8889

0 commit comments

Comments
 (0)