docstr: See :meth:`torch.nn.Module.to`.
docstr_tok: ["See",":","meth",":","`","torch.nn.Module.to","`","."]
code: def to(self, *args: Any, **kwargs: Any) -> Self:
      """See :meth:`torch.nn.Module.to`."""
      # this converts `str` device to `torch.device`
      device, dtype = torch._C._nn._parse_to(*args, **kwargs)[:2]
      _update_properties(self, device=device, dtype=dtype)
      return super().to(*args, **kwargs)
  
file_path: pytorch-lightning/src/lightning/fabric/utilities/device_dtype_mixin.py
imports: from typing import Any, List, Optional, Union
  import torch
  from torch.nn import Module
  from typing_extensions import Self, override
label_desc: Use image node_id 5 for calling the _DeviceDtypeModuleMixin obj's underlying member method code with example usage: obj.to() and returns: super