(self)
| 325 | class TestBatchManipulation(unittest.TestCase): |
| 326 | |
| 327 | def setUp(self): |
| 328 | # create model |
| 329 | self.m = dy.ParameterCollection() |
| 330 | # Parameter |
| 331 | self.p = self.m.add_lookup_parameters((2, 3)) |
| 332 | # Values |
| 333 | self.pval = np.asarray([[1, 2, 3], [4, 5, 6]], dtype=np.float32) |
| 334 | self.p.init_from_array(self.pval) |
| 335 | |
| 336 | def test_lookup_batch(self): |
| 337 | dy.renew_cg() |
nothing calls this directly
no test coverage detected