Skip to content

Instantly share code, notes, and snippets.

Created February 11, 2019 04:21
What would you like to do?
import numpy as np
def create_matrix(size):
return np.random.normal(size=size)
def multiply_matrices(x, y):
return, y)
x_id = create_matrix.remote([1000, 1000])
y_id = create_matrix.remote([1000, 1000])
z_id = multiply_matrices.remote(x_id, y_id)
# Get the results.
z = ray.get(z_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment