MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / reset

Method reset

wan/models/cache_utils.py:73–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 return rel_l1_distance.cpu().item()
72
73 def reset(self):
74 self.cnt = 0
75 self.should_calc = True
76 self.accumulated_rel_l1_distance = 0
77 self.previous_modulated_input = None
78 self.previous_residual = None
79 self.previous_residual_cond = None
80 self.previous_residual_uncond = None

Callers 1

forwardMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected