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