(self)
| 92 | class TestFlatten(test_util.TestCase): |
| 93 | |
| 94 | def testFlatten(self): |
| 95 | op = core.CreateOperator("Flatten", ["X"], ["Y"]) |
| 96 | X = np.random.rand(2, 3, 4, 5).astype(np.float32) |
| 97 | res = device_checker.CheckSimple(op, [X], [0]) |
| 98 | self.assertTrue(res) |
| 99 | for checker in gradient_checkers: |
| 100 | res, grad, grad_estimated = checker.CheckSimple(op, [X], 0, [0]) |
| 101 | self.assertTrue(res) |
| 102 | |
| 103 | |
| 104 | class TestConcat(test_util.TestCase): |
nothing calls this directly
no test coverage detected