(self, x)
| 30 | x = np.random.seed(0) |
| 31 | |
| 32 | def compare(self, x): |
| 33 | np_ans = np.trace(x, axis1=-2, axis2=-1) |
| 34 | with self.cached_session(use_gpu=True): |
| 35 | tf_ans = math_ops.trace(x).eval() |
| 36 | self.assertAllClose(tf_ans, np_ans) |
| 37 | |
| 38 | @test_util.run_deprecated_v1 |
| 39 | def testTrace(self): |
no test coverage detected