MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / __init__

Method __init__

train_utils.py:351–355  ·  view source on GitHub ↗
(self, model, decay)

Source from the content-addressed store, hash-verified

349 """
350
351 def __init__(self, model, decay):
352 self.model = model
353 self.decay = decay
354 self.shadow = {}
355 self.backup = {}
356
357 def load(self, ema_model):
358 for name, param in ema_model.named_parameters():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected