python ray_ray - 贝熊熊Python教程

Ray is a flexible, high-performance distributed execution framework.

Ray is easy to install:

pip install ray

Example Use

Basic Python

|

Distributed with Ray

---|---

# Execute f serially.

def f():

time.sleep(1)

return 1

results = [f() for i in range(4)]

|

# Execute f in parallel.

@ray.remote

def f():

time.sleep(1)

return 1

ray.init()

results = ray.get([f.remote() for i in range(4)])

Ray comes with libraries that accelerate deep learning and reinforcement

learning development:

Tune

: Hyperparameter Optimization Framework

RLlib

: Scalable Reinforcement Learning

Installation

Ray can be installed on Linux and Mac with

pip install ray

.

To build Ray from source or to install the nightly versions, see the

installation

documentation

.

More Information

Getting Involved

ray-dev@googlegroups.com

: For discussions about development or any general questions.

StackOverflow

: For questions about how to use Ray.

GitHub Issues

: For reporting bugs and feature requests.

Pull Requests

: For submitting code contributions.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值