Skip to content

Commit

Permalink
hotfix to a bug in the imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bonevbs committed Apr 26, 2024
1 parent fcc1aa2 commit ce480c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions torch_harmonics/distributed/distributed_convolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
from torch_harmonics.convolution import (
_compute_support_vals_isotropic,
_compute_support_vals_anisotropic,
_precompute_convolution_tensor_2d,
DiscreteContinuousConv,
)

Expand Down Expand Up @@ -256,8 +255,7 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:
x = self.quad_weights * x

if x.is_cuda and _cuda_extension_available:
x = _disco_s2_contraction_cuda(x, self.psi_roff_idx, self.psi_ker_idx, self.psi_row_idx, self.psi_col_idx, self.psi_vals,
self.kernel_size, self.nlat_out_local, self.nlon_out)
x = _disco_s2_contraction_cuda(x, self.psi_roff_idx, self.psi_ker_idx, self.psi_row_idx, self.psi_col_idx, self.psi_vals, self.kernel_size, self.nlat_out_local, self.nlon_out)
else:
if x.is_cuda:
warn("couldn't find CUDA extension, falling back to slow PyTorch implementation")
Expand Down

0 comments on commit ce480c1

Please sign in to comment.