class_docstr: A base class of objects with multi-device hierarchy.
docstr: Copies parameter variables and persistent values to the specified device.
  
  This method does not handle non-registered attributes. If some of such
  attributes must be copied to the device, the link implementation must
  override this method to do so.
  
  Args:
      device: Target device specifier. See
          :func:`~chainer.get_device` for available values.
  
  Returns: self
docstr_tok: ["Copies","parameter","variables","and","persistent","values","to","the","specified","device",".","This","method","does","not","handle","non-registered","attributes",".","If","some","of","such","attributes","must","be","copied","to","the","device",",","the","link","implementation","must","override","this","method","to","do","so",".","Args",":","device",":","Target","device","specifier",".","See",":","func",":","`","~chainer.get_device","`","for","available","values",".","Returns",":","self"]
code: def to_device(self, device: types.DeviceSpec) -> "DeviceResident":
      """Copies parameter variables and persistent values to the specified \
  device.
  
          This method does not handle non-registered attributes. If some of such
          attributes must be copied to the device, the link implementation must
          override this method to do so.
  
          Args:
              device: Target device specifier. See
                  :func:`~chainer.get_device` for available values.
  
          Returns: self
  
          """
      device = chainer.get_device(device)
      self.__to_device(_ToDeviceVisitor(device))
      return self
  
imports: from __future__ import absolute_import
  import abc
  import sys
  import threading
  import typing
  import warnings
  import numpy
  import chainer
  from chainer import backend
  from chainer.backends import _cpu
  from chainer.backends import cuda
  from chainer.backends import intel64
  from chainer import types
  from chainer import utils
  import chainerx
label_desc: Use image node_id 11 for calling the DeviceResident obj's underlying member method code with example usage: obj.to_device(device) and returns: self