MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / __del__

Method __del__

utils/offloading.py:226–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

224 self.forward_only = forward_only
225
226 def __del__(self):
227 if self.supports_backward:
228 for handle in self.remove_handles:
229 handle.remove()
230
231 def create_backward_hook(self, block_index: int) -> Optional[callable]:
232 # -1 for 0-based index

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected