MCPcopy Create free account
hub / github.com/CompVis/diff2flow / restore_ema_model_device

Method restore_ema_model_device

diff2flow/ema.py:137–139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

135 return self.ema_model.eval()
136
137 def restore_ema_model_device(self):
138 device = self.initted.device
139 self.ema_model.to(device)
140
141 def get_params_iter(self, model):
142 for name, param in model.named_parameters():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected