(self, params, lr=0, weight_decay=0, momentum=0.9, trust_coefficient=0.001)
| 16 | LARS optimizer, no rate scaling or weight decay for parameters <= 1D. |
| 17 | """ |
| 18 | def __init__(self, params, lr=0, weight_decay=0, momentum=0.9, trust_coefficient=0.001): |
| 19 | defaults = dict(lr=lr, weight_decay=weight_decay, momentum=momentum, trust_coefficient=trust_coefficient) |
| 20 | super().__init__(params, defaults) |
| 21 | |
| 22 | @torch.no_grad() |
| 23 | def step(self): |
nothing calls this directly
no outgoing calls
no test coverage detected