MCPcopy Index your code
hub / github.com/tdrussell/diffusion-pipe / set_forward_only

Method set_forward_only

utils/offloading.py:223–224  ·  view source on GitHub ↗
(self, forward_only: bool)

Source from the content-addressed store, hash-verified

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
225
226 def __del__(self):
227 if self.supports_backward:

Calls

no outgoing calls

Tested by

no test coverage detected