MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / eval

Method eval

imperative/python/megengine/module/module.py:411–415  ·  view source on GitHub ↗

r"""Sets training mode of all the modules within this module (including itself) to ``False``. See :meth:`~.Module.train` for details.

(self)

Source from the content-addressed store, hash-verified

409 self.apply(fn)
410
411 def eval(self) -> None:
412 r"""Sets training mode of all the modules within this module (including itself) to
413 ``False``. See :meth:`~.Module.train` for details.
414 """
415 self.train(False)
416
417 def disable_quantize(self, value=True):
418 r"""Sets ``module``'s ``quantize_disabled`` attribute and return ``module``.

Callers 15

val_funFunction · 0.45
pred_funFunction · 0.45
run_frozen_bnFunction · 0.45
test_frozen_bn_no_affineFunction · 0.45
test_batchnormFunction · 0.45
test_module_apiFunction · 0.45
test_qat_convbn2dFunction · 0.45
test_qat_convFunction · 0.45

Calls 1

trainMethod · 0.95

Tested by 15

val_funFunction · 0.36
pred_funFunction · 0.36
run_frozen_bnFunction · 0.36
test_frozen_bn_no_affineFunction · 0.36
test_batchnormFunction · 0.36
test_module_apiFunction · 0.36
test_qat_convbn2dFunction · 0.36
test_qat_convFunction · 0.36