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
def deserialize(self, header: Dict, buffers: List, context: Dict): from cudf.core.abc import Serializable return Serializable.device_deserialize(header, buffers)
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)
def dask_deserialize_cudf_object(header, frames): with log_errors(): return Serializable.host_deserialize(header, frames)
def cuda_deserialize_cudf_object(header, frames): with log_errors(): return Serializable.device_deserialize(header, frames)