Drop backward compatibility for Torch 1.13 (#1948)

* Drop backward compatibility for Torch 1.13

* Fix lint errors
This commit is contained in:
Jonáš Kulhánek authored and GitHub committed 2023-05-18 09:12:51 +02:00
1 parent ea3f25d662
commit 08e3a1f1a6
4 files changed
+3 -18

No files matched your search

+1 -3
View File
@@ -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,