mirror of
https://github.com/wassname/ray.git
synced 2026-07-19 11:27:32 +08:00
basic tutorials (#204)
This commit is contained in:
committed by
Philipp Moritz
parent
bd586b4a57
commit
5873831c21
@@ -12,6 +12,10 @@ def estimate_pi(n):
|
||||
def increment(x):
|
||||
return x + 1
|
||||
|
||||
@ray.remote([int, int], [int])
|
||||
def add(a, b):
|
||||
return a + b
|
||||
|
||||
@ray.remote([List[int]], [np.ndarray])
|
||||
def zeros(shape):
|
||||
return np.zeros(shape)
|
||||
|
||||
Reference in New Issue
Block a user