Skip to content

Commit

Permalink
Fix torch.compile for torch 2.1 (nerfstudio-project#2577)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkulhanek authored and Yosshi999 committed Nov 3, 2023
1 parent 850d515 commit a58ec45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nerfstudio/cameras/camera_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,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")
def radial_and_tangential_undistort(
coords: torch.Tensor,
distortion_params: torch.Tensor,
Expand Down

0 comments on commit a58ec45

Please sign in to comment.