MolecularDiffusion.modules.layers.esen.common.so3¶
Copyright (c) Meta, Inc. and its affiliates.
This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
Classes¶
Helper module for coefficients used to reshape l <--> m and to get coefficients of specific degree or order |
|
Helper functions for grid representation of the irreps |
Module Contents¶
- class MolecularDiffusion.modules.layers.esen.common.so3.CoefficientMapping(lmax, mmax)¶
Bases:
torch.nn.ModuleHelper module for coefficients used to reshape l <–> m and to get coefficients of specific degree or order
- Parameters:
- complex_idx(m, lmax, m_complex, l_harmonic)¶
Add m_complex and l_harmonic to the input arguments since we cannot use self.m_complex.
- pre_compute_coefficient_idx()¶
Pre-compute the results of coefficient_idx() and access them with prepare_coefficient_idx()
- pre_compute_rotate_inv_rescale()¶
- prepare_coefficient_idx()¶
Construct a list of buffers
- lmax¶
- m_size¶
- mmax¶
- res_size¶
- class MolecularDiffusion.modules.layers.esen.common.so3.SO3_Grid(lmax: int, mmax: int, normalization: str = 'integral', resolution: int | None = None, rescale: bool = True)¶
Bases:
torch.nn.ModuleHelper functions for grid representation of the irreps
- Parameters:
- get_from_grid_mat(device=None)¶
- get_to_grid_mat(device=None)¶
- lat_resolution¶
- lmax¶
- mapping¶
- mmax¶
- rescale = True¶