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

Fix flaky ray nightly image test #2493

Merged
merged 4 commits into from
Sep 14, 2022
Merged

Fix flaky ray nightly image test #2493

merged 4 commits into from
Sep 14, 2022

Conversation

arnavgarg1
Copy link
Contributor

@arnavgarg1 arnavgarg1 commented Sep 14, 2022

When we create a tensor directly from a numpy array instead of from a copy, it creates unpredictable behavior and results in the creation of ragged tensors downstream which causes weird type mismatch issues that Ray doesn't like. This change ensures we create the tensor from a copy of the numpy array so that we don't run into this issue.

@arnavgarg1 arnavgarg1 marked this pull request as ready for review September 14, 2022 20:40
@arnavgarg1 arnavgarg1 changed the title Fix flaky ray image test Fix flaky ray nightly image test Sep 14, 2022
Copy link
Contributor

@justinxzhao justinxzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for the fix.

@tgaddair tgaddair merged commit 9f46392 into master Sep 14, 2022
@tgaddair tgaddair deleted the flaky_ray_image_test branch September 14, 2022 21:39
tgaddair pushed a commit that referenced this pull request Sep 16, 2022
tgaddair added a commit that referenced this pull request Sep 16, 2022
Co-authored-by: Arnav Garg <106701836+arnavgarg1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tests] Ray nightly image tests with pandas+numpy fails with TensorDType error
3 participants