code: def to_device(
      self, device: _typing.Union[torch.device, str, int, None]
  ):
      self.device = device
      if self._decoder not in (Ellipsis, None) and isinstance(
          self._decoder, torch.nn.Module
      ):
          self._decoder.to(self.device)
  
file_path: AutoGL/autogl/module/model/decoders/base_decoder.py
imports: import torch
  import typing
  from ...hpo import AutoModule
  from ..encoders import base_encoder
label_desc: Use image node_id 7 for calling the BaseDecoderMaintainer obj's underlying member method code with example usage: obj.to_device(device) without return types