parameters: (self)
return_statement: return self._index_to_param_cache
docstring: r"""
          List mapping parameter indices in the global optimizer scheme to the
          actual params.
docstring_summary: r"""
          List mapping parameter indices in the global optimizer scheme to the
          actual params.
docstring_tokens: r List mapping parameter indices in the global optimizer scheme to the actual params .
function: def _index_to_param(self) -> List[torch.Tensor]:
          r"""
          List mapping parameter indices in the global optimizer scheme to the
          actual params.
          """
          if len(self._index_to_param_cache) == 0:
              self._index_to_param_cache = list(chain(*(g["params"] for g in self.param_groups)))
          return self._index_to_param_cache
function_tokens: def _index_to_param ( self ) -> List [ torch . Tensor ] : if len ( self . _index_to_param_cache ) == 0 : self . _index_to_param_cache = list ( chain ( * ( g [ "params" ] for g in self . param_groups ) ) ) return self . _index_to_param_cache