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

Method test_get_oneof

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

Source from the content-addressed store, hash-verified

62 self.assertEqual(network_config.as_dict(), network_params)
63
64 def test_get_oneof(self):
65 backbone = Backbone()
66 self.assertIsInstance(backbone.get(), ResNet)
67 self.assertEqual(backbone.get().as_dict(), {'model_depth': 50})
68
69
70if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

BackboneClass · 0.70
getMethod · 0.45
as_dictMethod · 0.45

Tested by

no test coverage detected