(self)
| 119 | self.assertAllClose(z, np_func(1 + 2j, 3 + 4j)) |
| 120 | |
| 121 | def testRFFT(self): |
| 122 | with self.cached_session(): |
| 123 | x = constant_op.constant([1., 2., 3., 4.], dtypes.float32) |
| 124 | |
| 125 | def rfft(x): |
| 126 | return np.fft.rfft(x).astype(np.complex64) |
| 127 | |
| 128 | y = self.evaluate(script_ops.py_func(rfft, [x], dtypes.complex64)) |
| 129 | self.assertAllClose(y, np.fft.rfft([1., 2., 3., 4.])) |
| 130 | |
| 131 | def testPythonLiteral(self): |
| 132 | with self.cached_session(): |
nothing calls this directly
no test coverage detected