mirror of
https://github.com/wassname/ray.git
synced 2026-08-14 12:40:23 +08:00
Allow remote decorator to be used with no parentheses.
This commit is contained in:
@@ -82,7 +82,7 @@ complicated version of this remote function is defined in
|
||||
[hyperopt.py](hyperopt.py).
|
||||
|
||||
```python
|
||||
@ray.remote()
|
||||
@ray.remote
|
||||
def train_cnn_and_compute_accuracy(hyperparameters, train_images, train_labels, validation_images, validation_labels):
|
||||
# Actual work omitted.
|
||||
return validation_accuracy
|
||||
|
||||
Reference in New Issue
Block a user