(self)
| 100 | cp.testing.assert_allclose(result, test_data) |
| 101 | |
| 102 | def test_list_tuple(self): |
| 103 | test_data = [[1, 2], [3, 4]] |
| 104 | result = ToCupy(wrap_sequence=True)(test_data) |
| 105 | cp.testing.assert_allclose(result, cp.asarray(test_data)) |
| 106 | test_data = ((1, 2), (3, 4)) |
| 107 | result = ToCupy(wrap_sequence=True)(test_data) |
| 108 | cp.testing.assert_allclose(result, cp.asarray(test_data)) |
| 109 | |
| 110 | |
| 111 | if __name__ == "__main__": |