Function - datastream_to_proto#
- openfl.protocols.utils.datastream_to_proto(proto, stream)[source]#
Convert the datastream to the protobuf.
- Parameters:
proto – The protobuf to be filled with the data stream.
stream – The data stream.
logger (optional) – The logger for logging information.
- Returns:
The protobuf filled with the data stream.
- Return type:
proto