Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/VisionXLab/OF-Diff
/ reset_num_updates
Method
reset_num_updates
ldm/modules/ema.py:25–27 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
23
self.collected_params = []
24
25
def
reset_num_updates(self):
26
del self.num_updates
27
self.register_buffer(
'num_updates'
, torch.tensor(0, dtype=torch.int))
28
29
def
forward(self, model):
30
decay = self.decay
Callers
2
__init__
Method · 0.80
__init__
Method · 0.80
Calls
1
register_buffer
Method · 0.45
Tested by
no test coverage detected