(self)
| 282 | ] |
| 283 | |
| 284 | def testSin(self): |
| 285 | for input_size in self.test_configs: |
| 286 | op = core.CreateOperator("Sin", ["X"], ["Y"]) |
| 287 | X = np.random.rand(*input_size).astype(np.float32) - 0.5 |
| 288 | res = device_checker.CheckSimple(op, [X], [0]) |
| 289 | self.assertTrue(res) |
| 290 | for checker in gradient_checkers: |
| 291 | res, grad, grad_estimated = checker.CheckSimple(op, [X], 0, [0]) |
| 292 | self.assertTrue(res) |
| 293 | |
| 294 | class TestSigmoid(test_util.TestCase): |
| 295 |
nothing calls this directly
no test coverage detected