Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-harmonics
Commits
9fb288c0
Commit
9fb288c0
authored
Jul 21, 2025
by
Andrea Paris
Committed by
Boris Bonev
Jul 21, 2025
Browse files
put back oneliner
parent
9336efe8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/test_convolution.py
tests/test_convolution.py
+1
-0
No files found.
tests/test_convolution.py
View file @
9fb288c0
...
@@ -47,6 +47,7 @@ if torch.cuda.is_available():
...
@@ -47,6 +47,7 @@ if torch.cuda.is_available():
def
_normalize_convolution_tensor_dense
(
psi
,
quad_weights
,
transpose_normalization
=
False
,
basis_norm_mode
=
"none"
,
merge_quadrature
=
False
,
eps
=
1e-9
):
def
_normalize_convolution_tensor_dense
(
psi
,
quad_weights
,
transpose_normalization
=
False
,
basis_norm_mode
=
"none"
,
merge_quadrature
=
False
,
eps
=
1e-9
):
"""Discretely normalizes the convolution tensor."""
kernel_size
,
nlat_out
,
nlon_out
,
nlat_in
,
nlon_in
=
psi
.
shape
kernel_size
,
nlat_out
,
nlon_out
,
nlat_in
,
nlon_in
=
psi
.
shape
correction_factor
=
nlon_out
/
nlon_in
correction_factor
=
nlon_out
/
nlon_in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment