Example #1
0
    def deserialize(self, header: Dict, buffers: List, context: Dict):
        from cudf.core.abc import Serializable

        col_header = header.pop("_ext_columns", None)
        index_header = header.pop("_ext_index", None)

        result = Serializable.device_deserialize(header, buffers)

        if col_header is not None:
            self._apply_index_type(result, "columns", col_header)
        if index_header is not None:
            self._apply_index_type(result, "index", index_header)
        return result
Example #2
0
 def deserialize(self, header: Dict, buffers: List, context: Dict):
     from cudf.core.abc import Serializable
     return Serializable.device_deserialize(header, buffers)
Example #3
0
 def deserialize_cudf_object(header, frames):
     with log_errors():
         if header["serializer"] == "cuda":
             return Serializable.device_deserialize(header, frames)
         elif header["serializer"] == "dask":
             return Serializable.host_deserialize(header, frames)
Example #4
0
 def cuda_deserialize_cudf_object(header, frames):
     with log_errors():
         return Serializable.device_deserialize(header, frames)