lenskit.parallel.serialize#
Serialization utilities for parallel processing.
Functions
|
Deserialize SHM-pickled data. |
|
Serialize an object for processing in a subclass with shared memory when feasible (including CUDA). |
Classes
|
Serialized data (with shared memory handles). |
|
- class lenskit.parallel.serialize.SHMData(pickle, buffers)#
Bases:
NamedTuple
Serialized data (with shared memory handles).
- Parameters:
pickle (bytes)
buffers (list[tuple[SharedMemory | None, int]])
- class lenskit.parallel.serialize.SHMPickler(file, protocol=5, manager=None, *, fix_imports=False)#
Bases:
Pickler
- Parameters:
protocol (int | None)
manager (SharedMemoryManager | None)
fix_imports (bool)
- lenskit.parallel.serialize.shm_serialize(obj, manager=None)#
Serialize an object for processing in a subclass with shared memory when feasible (including CUDA).
- Parameters:
obj (Any)
manager (SharedMemoryManager | None)
- Return type: