Commit b45a68b5 authored by Andrea Paris's avatar Andrea Paris Committed by Boris Bonev
Browse files

updated docstring for precompute convolution tensor dense

parent 01c5ead9
...@@ -48,7 +48,7 @@ if torch.cuda.is_available(): ...@@ -48,7 +48,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.""" """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
...@@ -96,6 +96,7 @@ def _precompute_convolution_tensor_dense( ...@@ -96,6 +96,7 @@ def _precompute_convolution_tensor_dense(
basis_norm_mode="none", basis_norm_mode="none",
merge_quadrature=False, merge_quadrature=False,
): ):
"""Helper routine to compute the convolution Tensor in a dense fashion."""
assert len(in_shape) == 2 assert len(in_shape) == 2
assert len(out_shape) == 2 assert len(out_shape) == 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment