MCPcopy Create free account
hub / github.com/apache/singa / train

Method train

python/singa/model.py:210–217  ·  view source on GitHub ↗

Set the model in evaluation mode. Args: mode(bool): when mode is True, this model will enter training mode

(self, mode=True)

Source from the content-addressed store, hash-verified

208 raise NotImplementedError
209
210 def train(self, mode=True):
211 """Set the model in evaluation mode.
212
213 Args:
214 mode(bool): when mode is True, this model will enter training mode
215 """
216 self.training = mode
217 autograd.training = mode
218
219 def eval(self):
220 """Sets the model in evaluation mode.

Callers 3

evalMethod · 0.95
test_lstm_modelMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_lstm_modelMethod · 0.36