MCPcopy Create free account
hub / github.com/pytorch/pytorch / training

Method training

torch/nn/cpp.py:80–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78 # nn.Module defines training as a boolean
79 @property # type: ignore[override]
80 def training(self):
81 return self.cpp_module.training
82
83 @training.setter
84 def training(self, mode):

Callers

nothing calls this directly

Calls 1

trainMethod · 0.45

Tested by

no test coverage detected