utility functions for https://github.com/ray-project/ray/
Project description
ray-utils
utility functions for https://github.com/ray-project/ray/
Usage
Installation
pip install -i https://test.pypi.org/simple/ ray-utils
Documentation
apply_parallel
Apply a function in parallel on elements of an iterable.
Example:
from ray_utils import apply_parallel
apply_parallel(
group_l=enumerate([1,2,3,4]),
func_apply=lambda x, val_init: val_init*x,
func_init=lambda: 3
)
init_in_context
Like ray.init()
but automatically calls ray.shutdown()
at the end of the "python context".
Example:
from ray_utils import init_in_context
with init_in_context():
print("bla")
Dev notes
Edit project in github.dev
at:
Push python package updates to pypi at:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ray_utils-0.0.3.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for ray_utils-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0ce863d3d2b6bb65559ebd4a8ac01d20b1641199dac5083293a9efdf94c39e7 |
|
MD5 | 021335369b054eecffb204bb44bbd658 |
|
BLAKE2b-256 | cf17c6adc44e28cff029019667d9e4c0773653c2a88441da1cb2c89e6e80d629 |