Created
June 26, 2020 19:40
-
-
Save mfitton/83c51fc81a3ab7f089bf526b6b3dfc3e to your computer and use it in GitHub Desktop.
blog snippit 2
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
@ray.remote | |
def trace_rays_with_bounces(xys): | |
results = [] | |
for (x, y) in xys: | |
# ... Snipped, same code as before ... | |
results.append(np.clip(col, 0, 1)) | |
return results |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment