MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __init__

Method __init__

SwissArmyTransformer/examples/mae/util/lars.py:18–20  ·  view source on GitHub ↗
(self, params, lr=0, weight_decay=0, momentum=0.9, trust_coefficient=0.001)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected