nvflare.fuel.utils.fobs.datum module¶
- class Datum(datum_type: DatumType, value: Any)[source]¶
Bases:
object
Datum is a class that holds information for externalized data
Constructor of Datum object
- Parameters:
datum_type – type of the datum.
value – value of the datum
- static blob_datum(blob: bytes | bytearray | memoryview)[source]¶
Factory method to create a BLOB datum
- set_restore_func(func, func_data)[source]¶
Set the restore function and func data. Restore func is set during the serialization process. If set, the func will be called after the serialization to restore the serialized object back to its original state.
- Args:
func: the restore function func_data: arg passed to the restore func when called
Returns: None
- class DatumManager(threshold=None)[source]¶
Bases:
object