error message on non-integral args with ray.remote#10221
error message on non-integral args with ray.remote#10221edoakes merged 3 commits intoray-project:masterfrom kishansagathiya:issue_8894
Conversation
This commit type checks arguments for ray.remote and checks if they belong to the valid range for that argument and shows informative error if otherwise. Fixes #8894
|
Hi, this is ready for review. As far as I understand, failing tests here are unrelated to the PR. There are tests where value of |
edoakes
left a comment
There was a problem hiding this comment.
This looks great @kishansagathiya! Would you mind also adding some basic tests for these?
|
Also @kishansagathiya, yes floats are valid for |
Sure |
This commit includes tests to check - when ray.remote is passed with an inappropriate arguments, it throughs ValueError exceptions issue #8894
|
@edoakes It doesn't check that things work on valid arguments like positive integers and -1 in some cases. Let me know if those tests needs to be added. |
|
@kishansagathiya Can you merge the latest master? There were some master failures, and it should've been fixed by now. |
|
@kishansagathiya merged it, thanks for your contribution! |
This PR type checks arguments for ray.remote and checks if they
belong to the valid range for that argument and shows informative error
if otherwise.
Why are these changes needed?
Related issue number
Fixes #8894
Checks
scripts/format.shto lint the changes in this PR.