Function - proto_to_datastream#
- openfl.protocols.utils.proto_to_datastream(proto, max_buffer_size=2097152)[source]#
Convert the protobuf to the datastream for the remote connection.
- Parameters:
proto – The protobuf to be converted into a data stream.
logger – The logger for logging information.
max_buffer_size (optional) – The maximum buffer size for the data stream. Defaults to 2*1024*1024.
- Yields:
reply – Chunks of the data stream for the remote connection.