change remote function invocation from func() to func.remote() (#328)

This commit is contained in:
Robert Nishihara
2016-07-31 15:25:19 -07:00
committed by Philipp Moritz
parent 92f1976e94
commit 0e5b858324
19 changed files with 219 additions and 215 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ computation. Instead, it simply submits a number of tasks to the scheduler.
result_refs = []
for _ in range(100):
params = generate_random_params()
results.append((params, train_cnn_and_compute_accuracy(params, epochs)))
results.append((params, train_cnn_and_compute_accuracy.remote(params, epochs)))
```
If we wish to wait until the results have all been retrieved, we can retrieve