(model: torch.nn.Module)
| 965 | return LambdaLR(optimizer, lr_lambda, last_epoch) |
| 966 | |
| 967 | def count_parameters(model: torch.nn.Module) -> int: |
| 968 | return sum(p.numel() for p in model.parameters() if p.requires_grad) |
| 969 | |
| 970 | def total_count_parameters(model: torch.nn.Module) -> int: |
| 971 | return sum(p.numel() for p in model.parameters()) |
nothing calls this directly
no outgoing calls
no test coverage detected