Skip to content

Instantly share code, notes, and snippets.

@mfitton
Created June 26, 2020 19:40
Show Gist options
  • Save mfitton/83c51fc81a3ab7f089bf526b6b3dfc3e to your computer and use it in GitHub Desktop.
Save mfitton/83c51fc81a3ab7f089bf526b6b3dfc3e to your computer and use it in GitHub Desktop.
blog snippit 2
@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