mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-24 00:26:08 +08:00
Drop backward compatibility for Torch 1.13 (#1948)
* Drop backward compatibility for Torch 1.13 * Fix lint errors
This commit is contained in:
1 parent
ea3f25d662
commit
08e3a1f1a6
4 files changed
+3
-18
No files matched your search
@@ -22,7 +22,6 @@ 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
|
||||
|
||||
@@ -109,7 +108,7 @@ class AABBBoxCollider(SceneCollider):
|
||||
return ray_bundle
|
||||
|
||||
|
||||
@torch_compile(dynamic=True, mode="reduce-overhead")
|
||||
@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
|
||||
):
|
||||
|
||||
Reference in new issue
Block a user