Remove confusing max_calls examples from documentation (#19395)

This commit is contained in:
iasoon 2021-11-14 19:16:41 +01:00 committed by GitHub
parent c0aeb4a236
commit 4cbe8f4c9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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: