MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / test_count_params

Method test_count_params

tensorflow/python/layers/base_test.py:432–439  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

buildMethod · 0.95
count_paramsMethod · 0.80

Tested by

no test coverage detected