mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 14:58:55 +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
@@ -25,8 +25,6 @@ from jaxtyping import Float
|
||||
from numpy.typing import NDArray
|
||||
from torch import Tensor
|
||||
|
||||
from nerfstudio.utils.misc import torch_compile
|
||||
|
||||
_EPS = np.finfo(float).eps * 4.0
|
||||
|
||||
|
||||
@@ -407,7 +405,7 @@ def _compute_residual_and_jacobian(
|
||||
return fx, fy, fx_x, fx_y, fy_x, fy_y
|
||||
|
||||
|
||||
@torch_compile(dynamic=True, mode="reduce-overhead", backend="eager")
|
||||
@torch.compile(dynamic=True, mode="reduce-overhead", backend="eager")
|
||||
def radial_and_tangential_undistort(
|
||||
coords: torch.Tensor,
|
||||
distortion_params: torch.Tensor,
|
||||
|
||||
Reference in new issue
Block a user