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

Function disabled_train

ldm/modules/encoders/modules.py:52–55  ·  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

50
51
52def disabled_train(self, mode=True):
53 """Overwrite model.train with this function to make sure train/eval mode
54 does not change anymore."""
55 return self
56
57
58class FrozenT5Embedder(AbstractEncoder):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected