openfl.protocols.utils.datastream_to_proto

openfl.protocols.utils.datastream_to_proto(proto, stream, logger=None)

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:

proto – The protobuf filled with the data stream.