MCPcopy Create free account
hub / github.com/arielshaulov/FlowMo / disable

Method disable

motion_optimizer.py:57–64  ·  view source on GitHub ↗

Restore original forward method

(self)

Source from the content-addressed store, hash-verified

55 self.is_active = True
56
57 def disable(self):
58 """Restore original forward method"""
59 if not self.is_active:
60 return
61
62 # Restore original forward method
63 self.model.forward = self.original_forward
64 self.is_active = False
65
66
67class MotionVarianceOptimizer:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected