MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / train

Method train

imperative/python/megengine/quantization/observer.py:56–61  ·  view source on GitHub ↗
(self, mode: bool = True, recursive: bool = True)

Source from the content-addressed store, hash-verified

54 self.enabled = False
55
56 def train(self, mode: bool = True, recursive: bool = True) -> None:
57 super().train(mode, recursive)
58 if mode:
59 self.enable()
60 else:
61 self.disable()
62
63 @abstractmethod
64 def forward(self, x):

Callers

nothing calls this directly

Calls 2

enableMethod · 0.95
disableMethod · 0.95

Tested by

no test coverage detected