mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
See if we can avoid some model / layer pickle issues with the aa attr in ConvNormAct
This commit is contained in:
parent
5fe5f9d488
commit
464885e135
@ -82,7 +82,8 @@ class ConvNormAct(nn.Module):
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user