(self)
| 302 | ] |
| 303 | |
| 304 | def testSigmoid(self): |
| 305 | for input_size in self.test_configs: |
| 306 | op = core.CreateOperator("Sigmoid", ["X"], ["Y"]) |
| 307 | X = np.random.rand(*input_size).astype(np.float32) - 0.5 |
| 308 | res = device_checker.CheckSimple(op, [X], [0]) |
| 309 | self.assertTrue(res) |
| 310 | for checker in gradient_checkers: |
| 311 | res, grad, grad_estimated = checker.CheckSimple(op, [X], 0, [0]) |
| 312 | self.assertTrue(res) |
| 313 | |
| 314 | |
| 315 | class TestSum(test_util.TestCase): |
nothing calls this directly
no test coverage detected