Skip to content

Commit

Permalink
Another bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bonevbs committed Apr 28, 2024
1 parent c197d42 commit e6a0a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_harmonics/distributed/distributed_convolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def _precompute_distributed_convolution_tensor_s2(in_shape, out_shape, kernel_sh
assert len(out_shape) == 2

if len(kernel_shape) == 1:
kernel_handle = partial(_compute_support_vals_isotropic, nr=kernel_shape[0], r_cutoff=theta_cutoff, norm="s2")
kernel_handle = partial(_compute_support_vals_isotropic, nr=kernel_shape[0], r_cutoff=theta_cutoff)
elif len(kernel_shape) == 2:
kernel_handle = partial(_compute_support_vals_anisotropic, nr=kernel_shape[0], nphi=kernel_shape[1], r_cutoff=theta_cutoff, norm="s2")
kernel_handle = partial(_compute_support_vals_anisotropic, nr=kernel_shape[0], nphi=kernel_shape[1], r_cutoff=theta_cutoff)
else:
raise ValueError("kernel_shape should be either one- or two-dimensional.")

Expand Down

0 comments on commit e6a0a61

Please sign in to comment.