openfl.protocols.utils.deconstruct_proto

openfl.protocols.utils.deconstruct_proto(model_proto, compression_pipeline)

Deconstruct the protobuf.

This function takes a model protobuf and a compression pipeline, and deconstructs the protobuf into a dictionary of tensors.

Parameters:
  • model_proto – The protobuf of the model.

  • compression_pipeline – The compression pipeline for the model.

Returns:

tensor_dict – A dictionary where the keys are tensor names and the values are the corresponding tensors.