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

Function disabled_train

sat/sgm/util.py:102–105  ·  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

100
101
102def disabled_train(self, mode=True):
103 """Overwrite model.train with this function to make sure train/eval mode
104 does not change anymore."""
105 return self
106
107
108def get_string_from_tuple(s):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected