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): def group_matcher(self, coarse=False):
return dict( return dict(
stem=r'^stem', 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 @torch.jit.ignore

Loading…
Cancel
Save