Skip to content

Commit

Permalink
See if we can avoid some model / layer pickle issues with the aa attr…
Browse files Browse the repository at this point in the history
… in ConvNormAct
  • Loading branch information
rwightman committed Dec 3, 2024
1 parent 5fe5f9d commit 464885e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion timm/layers/conv_bn_act.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def out_channels(self):
def forward(self, x):
x = self.conv(x)
x = self.bn(x)
if self.aa is not None:
aa = getattr(self, 'aa', None)
if aa is not None:
x = self.aa(x)
return x

Expand Down

0 comments on commit 464885e

Please sign in to comment.