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

Method eval

python/singa/model.py:219–222  ·  view source on GitHub ↗

Sets the model in evaluation mode.

(self)

Source from the content-addressed store, hash-verified

217 autograd.training = mode
218
219 def eval(self):
220 """Sets the model in evaluation mode.
221 """
222 self.train(mode=False)
223
224 def graph(self, mode=True, sequential=False):
225 """ Turn on the computational graph. Specify execution mode.

Callers 2

test_lstm_modelMethod · 0.45

Calls 1

trainMethod · 0.95

Tested by 2

test_lstm_modelMethod · 0.36