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

Method eval

examples/model_selection/Trails/singa_pkg_code/model.py:242–245  ·  view source on GitHub ↗

Sets the model in evaluation mode.

(self)

Source from the content-addressed store, hash-verified

240 autograd.training = mode
241
242 def eval(self):
243 """Sets the model in evaluation mode.
244 """
245 self.train(mode=False)
246
247 def graph(self, mode=True, sequential=False):
248 """ Turn on the computational graph. Specify execution mode.

Callers 1

runFunction · 0.45

Calls 1

trainMethod · 0.95

Tested by

no test coverage detected