MCPcopy Index your code
hub / github.com/google-deepmind/learning-to-learn / testShape

Method testShape

problems_test.py:117–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115 """Tests Ensemble problem."""
116
117 def testShape(self):
118 num_dims = 3
119 problem_defs = [{"name": "simple", "options": {}} for _ in xrange(num_dims)]
120 ensemble = problems.ensemble(problem_defs)
121 f = ensemble()
122 self.assertEqual(f.get_shape().as_list(), [])
123
124 def testVariables(self):
125 num_dims = 3

Callers

nothing calls this directly

Calls 1

ensembleFunction · 0.85

Tested by

no test coverage detected