Fix group_matcher regex for regnet.py

pull/1256/head
Ross Wightman 3 years ago
parent 6d4665bb52
commit 37b6920df3

@ -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

Loading…
Cancel
Save