MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / disabled_train

Function disabled_train

sat/vae_modules/utils.py:94–97  ·  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

92
93
94def disabled_train(self, mode=True):
95 """Overwrite model.train with this function to make sure train/eval mode
96 does not change anymore."""
97 return self
98
99
100def get_string_from_tuple(s):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected