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

Method eval

examples/cnn_ms/pkg_model_code/model.py:222–225  ·  view source on GitHub ↗

Sets the model in evaluation mode.

(self)

Source from the content-addressed store, hash-verified

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

Callers 15

runFunction · 0.45
do_evalFunction · 0.45
runFunction · 0.45
runFunction · 0.45
runFunction · 0.45
runFunction · 0.45
runFunction · 0.45
runFunction · 0.45
runFunction · 0.45
runFunction · 0.45
runFunction · 0.45
runFunction · 0.45

Calls 1

trainMethod · 0.95

Tested by

no test coverage detected