MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / _get_and_check_step

Method _get_and_check_step

python/oneflow/framework/model.py:512–517  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

510 )
511
512 def _get_and_check_step(self):
513 if not self._model.method_overrided("validation_step"):
514 self.error_msg += "model.validation_step() is empty;"
515 return False
516 else:
517 return True
518
519 def _get_and_check_job(self):
520 self._is_numpy_input = (

Callers 1

__init__Method · 0.95

Calls 1

method_overridedMethod · 0.80

Tested by

no test coverage detected