class_docstr: A base class of objects with multi-device hierarchy.
docstr: Applies the visitor to all the device objects in this instance.
  
  Args:
      visitor(~chainer.device_resident.DeviceResidentsVisitor): Visitor.
  
  This method should be overridden if the concrete class has custom
  sub-hierarchy of device resident objects.
docstr_tok: ["Applies","the","visitor","to","all","the","device","objects","in","this","instance",".","Args",":","visitor","(","~chainer.device_resident.DeviceResidentsVisitor",")",":","Visitor",".","This","method","should","be","overridden","if","the","concrete","class","has","custom","sub-hierarchy","of","device","resident","objects","."]
code: def device_resident_accept(self, visitor):
      """Applies the visitor to all the device objects in this instance.
  
      Args:
          visitor(~chainer.device_resident.DeviceResidentsVisitor): Visitor.
  
      This method should be overridden if the concrete class has custom
      sub-hierarchy of device resident objects.
      """
      visitor.visit_device_resident(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 2 for calling the DeviceResident obj's underlying member method code with example usage: obj.device_resident_accept(visitor) without return types