MCPcopy Index your code
hub / github.com/tensorflow/models / test_no_eval_steps

Method test_no_eval_steps

orbit/controller_test.py:518–532  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

516 self.assertNotEmpty(tf.io.gfile.glob(done_file))
517
518 def test_no_eval_steps(self):
519 test_runner = TestRunner()
520
521 checkpoint = tf.train.Checkpoint(model=test_runner.model)
522 checkpoint.save(os.path.join(self.model_dir, "ckpt"))
523 checkpoint_manager = tf.train.CheckpointManager(
524 checkpoint,
525 self.model_dir,
526 max_to_keep=None,
527 step_counter=test_runner.global_step)
528 test_controller = controller.Controller(
529 evaluator=test_runner,
530 global_step=test_runner.global_step,
531 checkpoint_manager=checkpoint_manager)
532 test_controller.evaluate()
533
534 @parameterized.named_parameters(
535 ("_sync_checkpoint_saving", False),

Callers

nothing calls this directly

Calls 4

evaluateMethod · 0.95
TestRunnerClass · 0.85
saveMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected