Speedup eval and training with better data management (#492)

move to tensors to gpu earlier
This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-09-19 18:36:12 -07:00
1 parent 96e1f2a698
commit a43776d76d
5 files changed
+13 -12

No files matched your search

@@ -50,5 +50,4 @@ class RayGenerator(nn.Module):
camera_indices=c,
coords=coords,
)
ray_bundle.camera_indices = c[..., None] # ["num_rays",1]
return ray_bundle