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

Method test_default_trainer

orbit/standard_runner_test.py:115–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113class StandardRunnerTest(parameterized.TestCase):
114
115 def test_default_trainer(self):
116 trainer = TestTrainer()
117 self.assertEqual(trainer.train(tf.constant(10)), 10)
118
119 def test_trainer_with_tpu_summary_optimization(self):
120 options = standard_runner.StandardTrainerOptions(

Callers

nothing calls this directly

Calls 2

TestTrainerClass · 0.85
trainMethod · 0.45

Tested by

no test coverage detected