class_docstr: Plugin for training with double (``torch.float64``) precision.
docstr: A context manager to change the default tensor type.
  
  See: :func:`torch.set_default_dtype`
docstr_tok: ["A","context","manager","to","change","the","default","tensor","type",".","See",":",":","func",":","`","torch.set_default_dtype","`"]
code: def forward_context(self) -> Generator[None, None, None]:
      """A context manager to change the default tensor type.
  
      See: :func:`torch.set_default_dtype`
  
      """
      with self.tensor_init_context():
          yield
  
imports: from contextlib import contextmanager
  from typing import Any, ContextManager, Generator, Literal
  import torch
  import torch.nn
  from lightning_utilities.core.apply_func import apply_to_collection
  from torch import Tensor
  from typing_extensions import override
  import lightning.pytorch
  from lightning.fabric.plugins.precision.utils import _convert_fp_tensor, _DtypeContextManager
  from lightning.fabric.utilities.device_dtype_mixin import _DeviceDtypeModuleMixin
  from lightning.pytorch.plugins.precision.precision import Precision
  from lightning.pytorch.utilities.rank_zero import rank_zero_deprecation
label_desc: Use image node_id 4 for calling the DoublePrecision obj's underlying member method code with example usage: obj.forward_context() without return types