mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Remove confusing max_calls examples from documentation (#19395)
This commit is contained in:
parent
c0aeb4a236
commit
4cbe8f4c9c
2 changed files with 3 additions and 2 deletions
|
@ -151,6 +151,7 @@ class RemoteFunction:
|
|||
|
||||
The arguments are the same as those that can be passed to
|
||||
:obj:`ray.remote`.
|
||||
Overriding `max_calls` is not supported.
|
||||
|
||||
Examples:
|
||||
|
||||
|
@ -160,7 +161,7 @@ class RemoteFunction:
|
|||
def f():
|
||||
return 1, 2
|
||||
# Task f will require 2 gpus instead of 1.
|
||||
g = f.options(num_gpus=2, max_calls=None)
|
||||
g = f.options(num_gpus=2)
|
||||
"""
|
||||
|
||||
func_cls = self
|
||||
|
|
|
@ -2127,7 +2127,7 @@ def remote(*args, **kwargs):
|
|||
@ray.remote(num_gpus=1, max_calls=1, num_returns=2)
|
||||
def f():
|
||||
return 1, 2
|
||||
g = f.options(num_gpus=2, max_calls=None)
|
||||
g = f.options(num_gpus=2)
|
||||
|
||||
@ray.remote(num_cpus=2, resources={"CustomResource": 1})
|
||||
class Foo:
|
||||
|
|
Loading…
Add table
Reference in a new issue