(self, dev)
| 384 | self._subscription_helper(gpu_dev) |
| 385 | |
| 386 | def _ceil_helper(self, dev): |
| 387 | |
| 388 | np1 = np.random.random([5, 6, 7, 8]).astype(np.float32) |
| 389 | np1 = np1 * 10 |
| 390 | np2 = np.ceil(np1) |
| 391 | |
| 392 | t1 = tensor.Tensor(device=dev, data=np1) |
| 393 | |
| 394 | t2 = tensor.ceil(t1) |
| 395 | |
| 396 | np.testing.assert_array_almost_equal(tensor.to_numpy(t2), np2) |
| 397 | |
| 398 | def test_ceil_cpu(self): |
| 399 | self._ceil_helper(cpu_dev) |
no test coverage detected