Rely on cuDF's Serializable in CumlArray#2281
Conversation
Update `CumlArray` to rely on cuDF's `Serializable`, which cuDF's `Buffer` inherits from. In particular `Serializable` already provides pickling support through a `__reduce_ex__` method of its own, which just builds off of the `serialize` and `deserialize` methods that all `Serializable` subclasses must implement and `CumlArray` already does (either by directly implementing them or relying on cuDF `Buffer`'s implementations). So no extra work is needed to just drop this.
|
@jakirkham the PR fails seem to indicate me that an issue with serializing/pickling the data inheritted as is from |
|
rerun tests ( |
|
Sorry for the confusion. I think the failure Should add here's That all being said, if I'm wrong about this, happy to take a closer look tomorrow 🙂 |
Depends on PR ( rapidsai/cudf#5139 ) and nightlies with that change.
Update
CumlArrayto rely on cuDF'sSerializable, which cuDF'sBufferinherits from. In particularSerializablealready provides pickling support through a__reduce_ex__method of its own, which just builds off of theserializeanddeserializemethods that allSerializablesubclasses must implement andCumlArrayalready does (either by directly implementing them or relying on cuDFBuffer's implementations). So no extra work is needed to just drop this.