mirror of
https://github.com/wassname/ray.git
synced 2026-08-01 12:51:09 +08:00
change remote function invocation from func() to func.remote() (#328)
This commit is contained in:
committed by
Philipp Moritz
parent
92f1976e94
commit
0e5b858324
@@ -16,11 +16,11 @@ def test_alias_f():
|
||||
|
||||
@ray.remote([], [np.ndarray])
|
||||
def test_alias_g():
|
||||
return test_alias_f()
|
||||
return test_alias_f.remote()
|
||||
|
||||
@ray.remote([], [np.ndarray])
|
||||
def test_alias_h():
|
||||
return test_alias_g()
|
||||
return test_alias_g.remote()
|
||||
|
||||
# Test timing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user