(dtype, real_range)
| 541 | ] |
| 542 | |
| 543 | def rand(dtype, real_range): |
| 544 | x = np.random.uniform( |
| 545 | real_range[0], real_range[1], size=shape[0]).astype(dtype) |
| 546 | if dtype in (np.complex64, np.complex128): |
| 547 | x += 1j * np.random.uniform(-2, 2, size=shape[0]).astype(dtype) |
| 548 | return x |
| 549 | |
| 550 | for op, real_range in op_range: |
| 551 | with self.cached_session(): |
no test coverage detected