MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / __init__

Method __init__

utils.py:537–542  ·  view source on GitHub ↗
(self, params, lr=0, weight_decay=0, momentum=0.9, eta=0.001,
                 weight_decay_filter=None, lars_adaptation_filter=None)

Source from the content-addressed store, hash-verified

535 Almost copy-paste from https://github.com/facebookresearch/barlowtwins/blob/main/main.py
536 """
537 def __init__(self, params, lr=0, weight_decay=0, momentum=0.9, eta=0.001,
538 weight_decay_filter=None, lars_adaptation_filter=None):
539 defaults = dict(lr=lr, weight_decay=weight_decay, momentum=momentum,
540 eta=eta, weight_decay_filter=weight_decay_filter,
541 lars_adaptation_filter=lars_adaptation_filter)
542 super().__init__(params, defaults)
543
544 @torch.no_grad()
545 def step(self):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected