-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[core] Simplify options handling [Part 2] #23882
Conversation
# decorator. Last three conditions are to check that no resources were | ||
# specified when _remote() was called. | ||
if ( | ||
num_cpus is None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original implementation is kind of buggy: It does not consider the case of "memory". "memory" should also be considered as a resource.
@@ -2112,7 +2112,6 @@ def _mode(worker=global_worker): | |||
|
|||
|
|||
def _make_remote(function_or_class, options): | |||
# filter out placeholders in options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove unexpected comment. I forgot to remove it last time.
ad106a2
to
0b2a5de
Compare
I decide to leave Ray Serve for later PRs, since it more related to Ray Serve. I just simply removed changes related to Ray Serve. |
0b2a5de
to
ee57239
Compare
All checks pass. I'll merge it. |
Why are these changes needed?
This is a follow up of #23127.
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.