(self)
| 430 | |
| 431 | @test_util.run_in_graph_and_eager_modes |
| 432 | def test_count_params(self): |
| 433 | dense = core_layers.Dense(16) |
| 434 | dense.build((None, 4)) |
| 435 | self.assertEqual(dense.count_params(), 16 * 4 + 16) |
| 436 | |
| 437 | dense = core_layers.Dense(16) |
| 438 | with self.assertRaises(ValueError): |
| 439 | dense.count_params() |
| 440 | |
| 441 | @test_util.run_in_graph_and_eager_modes |
| 442 | def testDictInputOutput(self): |
nothing calls this directly
no test coverage detected