mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
[iter] user-tip for better perf (#8712)
This commit is contained in:
parent
c5544eb070
commit
e9ce47bb6b
1 changed files with 5 additions and 0 deletions
|
@ -198,6 +198,11 @@ distributed training:
|
|||
work = [train.remote(shard) for shard in it.shards()]
|
||||
ray.get(work)
|
||||
|
||||
.. tip:: Using ParallelIterator built-in functions is typically most efficient.
|
||||
For example, if you find yourself using list comprehensions like
|
||||
``[foo(x) for x in iter.gather_async()]``, consider using
|
||||
``iter.for_each(foo)`` instead!
|
||||
|
||||
API Reference
|
||||
-------------
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue