MCPcopy
hub / github.com/tensorflow/models / test_to_dict

Method test_to_dict

official/modeling/hyperparams/oneof_test.py:48–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46class OneOfTest(tf.test.TestCase):
47
48 def test_to_dict(self):
49 network_params = {
50 'backbone': {
51 'type': 'resnet',
52 'resnet': {
53 'model_depth': 50
54 }
55 },
56 'output_layer': {
57 'type': 'single',
58 'single': 1000
59 }
60 }
61 network_config = Network(network_params)
62 self.assertEqual(network_config.as_dict(), network_params)
63
64 def test_get_oneof(self):
65 backbone = Backbone()

Callers

nothing calls this directly

Calls 2

NetworkClass · 0.85
as_dictMethod · 0.45

Tested by

no test coverage detected