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

Method enable_block_swap

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

Source from the content-addressed store, hash-verified

217 self.blocks_to_swap = None
218
219 def enable_block_swap(self):
220 if self.blocks_to_swap_tmp is not None:
221 self.blocks_to_swap = self.blocks_to_swap_tmp
222
223 def set_forward_only(self, forward_only: bool):
224 self.forward_only = forward_only

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected