Last active
April 20, 2020 18:32
-
-
Save bllchmbrs/1c90a3dc4ba5a4b438f1848f0dba0b18 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ray | |
from utils import adder, timer | |
if __name__ == '__main__': | |
ray.init(address='auto') | |
# ray.init(num_cpus=2) | |
values = range(10) | |
new_values = [adder.remote(x) for x in values] | |
timer(new_values) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment