(self)
| 63 | np.testing.assert_almost_equal(np.dot(A, B), outputs[0]) |
| 64 | |
| 65 | def test_run_map(self): |
| 66 | A = np.zeros((2, 3), np.float32) |
| 67 | B = np.ones((3, 4), np.float32) |
| 68 | predictor = workspace.Predictor(self.init_net, self.predict_net) |
| 69 | outputs = predictor.run({ |
| 70 | 'B': B, |
| 71 | }) |
| 72 | self.assertEqual(len(outputs), 1) |
| 73 | np.testing.assert_almost_equal(np.dot(A, B), outputs[0]) |
nothing calls this directly
no test coverage detected