(self)
| 262 | ] |
| 263 | |
| 264 | def testCos(self): |
| 265 | for input_size in self.test_configs: |
| 266 | op = core.CreateOperator("Cos", ["X"], ["Y"]) |
| 267 | X = np.random.rand(*input_size).astype(np.float32) - 0.5 |
| 268 | res = device_checker.CheckSimple(op, [X], [0]) |
| 269 | self.assertTrue(res) |
| 270 | for checker in gradient_checkers: |
| 271 | res, grad, grad_estimated = checker.CheckSimple(op, [X], 0, [0]) |
| 272 | self.assertTrue(res) |
| 273 | |
| 274 | class TestSin(test_util.TestCase): |
| 275 |
nothing calls this directly
no test coverage detected