(self)
| 242 | ] |
| 243 | |
| 244 | def testExp(self): |
| 245 | for input_size in self.test_configs: |
| 246 | op = core.CreateOperator("Exp", ["X"], ["Y"]) |
| 247 | X = np.random.rand(*input_size).astype(np.float32) - 0.5 |
| 248 | res = device_checker.CheckSimple(op, [X], [0]) |
| 249 | self.assertTrue(res) |
| 250 | for checker in gradient_checkers: |
| 251 | res, grad, grad_estimated = checker.CheckSimple(op, [X], 0, [0]) |
| 252 | self.assertTrue(res) |
| 253 | |
| 254 | class TestCos(test_util.TestCase): |
| 255 |
nothing calls this directly
no test coverage detected