mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[docs] Fix example in ray-get-loop.rst (#24609)
This commit is contained in:
parent
259661042c
commit
bb0bcbace0
1 changed files with 3 additions and 2 deletions
|
@ -19,8 +19,9 @@ Code example
|
|||
import ray
|
||||
ray.init()
|
||||
|
||||
def f():
|
||||
pass
|
||||
@ray.remote
|
||||
def f(i):
|
||||
return i
|
||||
|
||||
# Antipattern: no parallelism due to calling ray.get inside of the loop.
|
||||
returns = []
|
||||
|
|
Loading…
Add table
Reference in a new issue