class_docstr: Base class for all plugins handling the precision-specific parts of the training.
  
  The class attribute precision must be overwritten in child classes. The default value reflects fp32 training.
docstr: Controls how tensors get created (device, dtype).
docstr_tok: ["Controls","how","tensors","get","created","(","device",",","dtype",")","."]
code: def tensor_init_context(self) -> ContextManager:
      """Controls how tensors get created (device, dtype)."""
      return nullcontext()
  
imports: from contextlib import nullcontext
  from typing import Any, ContextManager, Dict, Literal, Optional, Union
  from torch import Tensor
  from torch.nn import Module
  from torch.optim import Optimizer
  from lightning.fabric.utilities.types import _PARAMETERS, Optimizable
label_desc: Use image node_id 2 for calling the Precision obj's underlying member method code with example usage: obj.tensor_init_context() and returns: nullcontext