(model)
| 624 | |
| 625 | |
| 626 | def has_batchnorms(model): |
| 627 | bn_types = (nn.BatchNorm1d, nn.BatchNorm2d, nn.BatchNorm3d, nn.SyncBatchNorm) |
| 628 | for name, module in model.named_modules(): |
| 629 | if isinstance(module, bn_types): |
| 630 | return True |
| 631 | return False |
| 632 | |
| 633 | |
| 634 | class PCA(): |
nothing calls this directly
no outgoing calls
no test coverage detected