class_docstr: A serializable object composed of device memory buffers.
  
  This base class defines a standard serialization protocol for objects
  encapsulating device memory buffers. Serialization proceeds by copying
  device data onto the host, then returning it along with suitable metadata
  for reconstruction of the object. Deserialization performs the reverse
  process, copying the serialized data from the host to new device buffers.
  Subclasses must define the abstract methods :meth:`~.serialize` and
  :meth:`~.deserialize`. The former defines the conversion of the object
  into a representative collection of metadata and data buffers, while the
  latter converts back from that representation into an equivalent object.
class_docstr_tok: ["A","serializable","object","composed","of","device","memory","buffers",".","This","base","class","defines","a","standard","serialization","protocol","for","objects","encapsulating","device","memory","buffers",".","Serialization","proceeds","by","copying","device","data","onto","the","host",",","then","returning","it","along","with","suitable","metadata","for","reconstruction","of","the","object",".","Deserialization","performs","the","reverse","process",",","copying","the","serialized","data","from","the","host","to","new","device","buffers",".","Subclasses","must","define","the","abstract","methods",":","meth",":","`","~.serialize","`","and",":","meth",":","`","~.deserialize","`",".","The","former","defines","the","conversion","of","the","object","into","a","representative","collection","of","metadata","and","data","buffers",",","while","the","latter","converts","back","from","that","representation","into","an","equivalent","object","."]
docstr: Perform device-side deserialization tasks.
  
  The primary purpose of this method is the creation of device memory
  buffers from host buffers where necessary.
  
  Parameters
  ----------
  header : dict
      The metadata required to reconstruct the object.
  frames : list
      The Buffers or memoryviews that the object should contain.
  
  Returns
  -------
  Serializable
      A new instance of `cls` (a subclass of `Serializable`) equivalent
      to the instance that was serialized to produce the header and
      frames.
  
  :meta private:
docstr_tok: ["Perform","device-side","deserialization","tasks",".","The","primary","purpose","of","this","method","is","the","creation","of","device","memory","buffers","from","host","buffers","where","necessary",".","Parameters","--","--","--","--","--","header",":","dict","The","metadata","required","to","reconstruct","the","object",".","frames",":","list","The","Buffers","or","memoryviews","that","the","object","should","contain",".","Returns","--","--","--","-","Serializable","A","new","instance","of","`","cls","`","(","a","subclass","of","`","Serializable","`",")","equivalent","to","the","instance","that","was","serialized","to","produce","the","header","and","frames",".",":","meta","private",":"]
code: def device_deserialize(cls, header, frames):
      """Perform device-side deserialization tasks.
  
      The primary purpose of this method is the creation of device memory
      buffers from host buffers where necessary.
  
      Parameters
      ----------
      header : dict
          The metadata required to reconstruct the object.
      frames : list
          The Buffers or memoryviews that the object should contain.
  
      Returns
      -------
      Serializable
          A new instance of `cls` (a subclass of `Serializable`) equivalent
          to the instance that was serialized to produce the header and
          frames.
  
      :meta private:
      """
      typ = pickle.loads(header["type-serialized"])
      frames = [
          cudf.core.buffer.as_buffer(f) if c else memoryview(f)
          for c, f in zip(header["is-cuda"], frames)
      ]
      return typ.deserialize(header, frames)
  
file_path: cudf/python/cudf/cudf/core/abc.py
imports: import pickle
  import numpy
  import cudf
label_desc: Use image node_id 4 for calling the Serializable obj's underlying member method code with example usage: obj.device_deserialize(cls, header, frames) and returns: typ