Bases: Module
Projection of (B, n, C) coefficients onto sphere samples (P, B, C) and back.
The samples are laid out sample-major, so that each projection is one
matrix product over all B * C columns (instead of B small ones)
and the channel-wise maps applied on the grid see a contiguous tensor.
- Parameters:
lmax (int) – The degrees and the orders kept (mmax < lmax for edge-frame features).
mmax (int) – The degrees and the orders kept (mmax < lmax for edge-frame features).
resolution (int, optional) – Samples in each angle; by default the smallest exact resolution.
-
to_grid(x)[source]
(B, n, C) coefficients to (P, B, C) samples.
- Parameters:
x (Tensor)
- Return type:
Tensor
-
from_grid(x)[source]
(P, B, C) samples to (B, n, C) coefficients (a transposed view).
- Parameters:
x (Tensor)
- Return type:
Tensor
-
forward(x)[source]
SiLU applied pointwise on the sphere.
- Parameters:
x (Tensor)
- Return type:
Tensor