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

Function add_

train.py:711–712  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

709 # backward() on future micro-batches. But we can modify .data directly so the autograd engine doesn't detect in-place modifications.
710 # TODO: this is unbelievably hacky and not mathematically sound, I'm just seeing if it works at all.
711 def add_(self, *args, **kwargs):
712 self.data.add_(*args, **kwargs)
713 for p in model_parameters:
714 p.add_ = add_.__get__(p)
715

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected