Switching to Torch 2.0 by default. (#1922)

* Update requirements for torch 2.0

* Update docs

* Fix missing _LRScheduler import

* Fix pylint issues

* Update docs, drop 1.13

* Fix pip postfix version

* fix docs

* Allow python 1.13 (for now)

* Minor fix for torch.compile

* Switch to torch.compile

* ruff

* Fix test

---------

Co-authored-by: Matt Tancik <mattt4001@gmail.com>
Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
This commit is contained in:
authored and GitHub committed 2023-05-17 16:03:17 -07:00
1 parent be291970db
commit e898f562e6
10 files changed
+83 -75

No files matched your search

@@ -22,6 +22,7 @@ import torch
from jaxtyping import Float
from torch import Tensor, nn
from nerfstudio.utils.misc import torch_compile
from nerfstudio.cameras.rays import RayBundle
from nerfstudio.data.scene_box import SceneBox
@@ -108,7 +109,7 @@ class AABBBoxCollider(SceneCollider):
return ray_bundle
@torch.jit.script
@torch_compile(dynamic=True, mode="reduce-overhead")
def _intersect_with_sphere(
rays_o: torch.Tensor, rays_d: torch.Tensor, center: torch.Tensor, radius: float = 1.0, near_plane: float = 0.0
):