class_docstr: Class that provides free-parameterization of orthogonal orbitals.
  
  Examples
  --------
  >>> import torch
  >>> from deepchem.utils.dft_utils import BaseOrbParams
  >>> class MyOrbParams(BaseOrbParams):
  ...     @staticmethod
  ...     def params2orb(params, coeffs, with_penalty):
  ...         return params, coeffs
  ...     @staticmethod
  ...     def orb2params(orb):
  ...         return orb, torch.tensor([0], dtype=orb.dtype, device=orb.device)
  >>> params = torch.randn(3, 4, 5)
  >>> coeffs = torch.randn(3, 4, 5)
  >>> with_penalty = 0.1
  >>> orb, penalty = MyOrbParams.params2orb(params, coeffs, with_penalty)
  >>> params2, coeffs2 = MyOrbParams.orb2params(orb)
  >>> torch.allclose(params, params2)
  True
docstr: Get the free parameters from the orthogonal orbitals. Returns ``params``
  and ``coeffs`` described in ``params2orb``.
  
  Parameters
  ----------
  orb: torch.Tensor
      The orthogonal orbitals.
  
  Returns
  -------
  params: torch.Tensor
      The free parameters to be optimized.
  coeffs: torch.Tensor
      The coefficients to get the orthogonal orbitals.
docstr_tok: ["Get","the","free","parameters","from","the","orthogonal","orbitals",".","Returns","``","params","``","and","``","coeffs","``","described","in","``","params2orb","``",".","Parameters","--","--","--","--","--","orb",":","torch.Tensor","The","orthogonal","orbitals",".","Returns","--","--","--","-","params",":","torch.Tensor","The","free","parameters","to","be","optimized",".","coeffs",":","torch.Tensor","The","coefficients","to","get","the","orthogonal","orbitals","."]
code: def orb2params(  # type: ignore[empty-body]
      orb: torch.Tensor,
  ) -> List[torch.Tensor]:
      """
      Get the free parameters from the orthogonal orbitals. Returns ``params``
      and ``coeffs`` described in ``params2orb``.
  
      Parameters
      ----------
      orb: torch.Tensor
          The orthogonal orbitals.
  
      Returns
      -------
      params: torch.Tensor
          The free parameters to be optimized.
      coeffs: torch.Tensor
          The coefficients to get the orthogonal orbitals.
  
      """
      pass
  
file_path: deepchem/deepchem/utils/dft_utils/hamilton/orbparams.py
imports: from typing import List
  import torch
label_desc: Use image node_id 2 for calling the BaseOrbParams obj's underlying member method code with example usage: obj.orb2params(orb) without return types