Fix group_matcher regex for regnet.py

This commit is contained in:
Ross Wightman 2022-05-09 10:40:40 -07:00
parent 6d4665bb52
commit 37b6920df3

View File

@ -458,7 +458,7 @@ class RegNet(nn.Module):
def group_matcher(self, coarse=False):
return dict(
stem=r'^stem',
blocks=r'^stages\.(\d+)' if coarse else r'^stages\.(\d+)\.blocks\.(\d+)',
blocks=r'^s(\d+)' if coarse else r'^s(\d+)\.b(\d+)',
)
@torch.jit.ignore