nvflare.app_opt.tensor_stream.sender module¶
- class TensorSender(engine: StreamableEngine, ctx_prop_key: str, format: str, tasks: list[str], channel: str = 'tensor_stream')[source]¶
Bases:
objectHandles sending tensors between server and clients.
Initialize the TensorSender.
- Parameters:
engine (StreamableEngine) – The streamable engine to use for streaming.
format (str) – The format of the tensors to send.
tasks (list[str]) – The list of tasks to send tensors for.
ctx_prop_key (str) – The context property key to send tensors for.
channel (str) – The channel to use for streaming. Default is TENSORS_CHANNEL.