(module, init_method)
| 17 | |
| 18 | |
| 19 | def init_uniform(module, init_method): |
| 20 | if module.weight is not None: |
| 21 | if init_method == "kaiming": |
| 22 | nn.init.kaiming_uniform_(module.weight) |
| 23 | elif init_method == "xavier": |
| 24 | nn.init.xavier_uniform_(module.weight) |
| 25 | return |
| 26 | |
| 27 | |
| 28 | class Conv2d(nn.Module): |
no outgoing calls
no test coverage detected