MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / disabled_train

Function disabled_train

ldm/models/diffusion/ddpm.py:43–46  ·  view source on GitHub ↗

Overwrite model.train with this function to make sure train/eval mode does not change anymore.

(self, mode=True)

Source from the content-addressed store, hash-verified

41
42
43def disabled_train(self, mode=True):
44 """Overwrite model.train with this function to make sure train/eval mode
45 does not change anymore."""
46 return self
47
48
49def uniform_on_device(r1, r2, shape, device):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected