Function - construct_proto#
- openfl.protocols.utils.construct_proto(tensor_dict, model_id, model_version, is_delta, compression_pipeline)[source]#
Construct proto.
- Parameters:
tensor_dict – A dictionary where the keys are tensor names and the values are the corresponding tensors.
model_id – The ID of the model.
model_version – The version of the model.
is_delta – A flag indicating whether the model is a delta model.
compression_pipeline – The compression pipeline for the model.
- Returns:
The protobuf of the model.
- Return type:
model_proto