(m)
| 640 | |
| 641 | |
| 642 | def weights_init_classifier(m): |
| 643 | classname = m.__class__.__name__ |
| 644 | if classname.find('Linear') != -1: |
| 645 | nn.init.normal_(m.weight, std=0.001) |
| 646 | if m.bias is not None: |
| 647 | nn.init.constant_(m.bias, 0.0) |
| 648 | |
| 649 | |
| 650 | class BNClassifier(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected