class_docstr: A base class of objects with multi-device hierarchy.
docstr: Converts parameter variables and persistent values to ChainerX without any copy.
  
  This method does not handle non-registered attributes. If some of such
  attributes must be copied to ChainerX, the link implementation must
  override this method to do so.
  
  Returns: self
docstr_tok: ["Converts","parameter","variables","and","persistent","values","to","ChainerX","without","any","copy",".","This","method","does","not","handle","non-registered","attributes",".","If","some","of","such","attributes","must","be","copied","to","ChainerX",",","the","link","implementation","must","override","this","method","to","do","so",".","Returns",":","self"]
code: def to_chx(self):
      """Converts parameter variables and persistent values to ChainerX \
  without any copy.
  
          This method does not handle non-registered attributes. If some of such
          attributes must be copied to ChainerX, the link implementation must
          override this method to do so.
  
          Returns: self
          """
      if not chainerx.is_available():
          raise RuntimeError("ChainerX is not available.")
  
      if self.xp is chainerx:
          return self
  
      self.device_resident_accept(_ToChxVisitor())
      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 8 for calling the DeviceResident obj's underlying member method code with example usage: obj.to_chx() and returns: self, self