nerf icon indicating copy to clipboard operation
nerf copied to clipboard

Is there any difference between get_rays() and get_rays_np()

Open MichaleGo opened this issue 5 years ago • 2 comments

Hi, thanks for the great work!

Is there any difference between get_rays() and get_rays_np()?

Thanks!

MichaleGo avatar Jan 27 '21 11:01 MichaleGo

Functionality of both functions is same. However, get_rays is implemented using numpy and the resulting variables are stored in cpu. On the other hand, get_rays_np is implemented using torch and load the variables in gpu.
This is my understanding of these function.

kainataltaf avatar Aug 27 '21 11:08 kainataltaf

I think get_rays_np is the function implemented using numpy

Functionality of both functions is same. However, get_rays is implemented using numpy and the resulting variables are stored in cpu. On the other hand, get_rays_np is implemented using torch and load the variables in gpu. This is my understanding of these function.

MY-WHU avatar Oct 25 '23 13:10 MY-WHU