Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for numpy array alignment. #2937

Open
robertnishihara opened this issue Sep 24, 2018 · 0 comments
Open

Add test for numpy array alignment. #2937

robertnishihara opened this issue Sep 24, 2018 · 0 comments
Labels
P3 Issue moderate in impact or severity

Comments

@robertnishihara
Copy link
Collaborator

This should be similar to https://github.com/apache/arrow/blob/23045d2b5be37df5cd990f5932576eb701e14b18/python/pyarrow/tests/test_serialization.py#L734-L754 except use ray.put and ray.get. E.g.,

for size in range(100):
    for dtype in [np.uint8, np.float32, np.float64, np.int64]:
        x = np.zeros(size, dtype=dtype)
        new_x = ray.get(ray.put(x))
        assert new_x.ctypes.data % 64 == 0
@simon-mo simon-mo added the P3 Issue moderate in impact or severity label Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Issue moderate in impact or severity
Projects
None yet
Development

No branches or pull requests

2 participants