Function - deconstruct_proto

Function - deconstruct_proto#

openfl.protocols.utils.deconstruct_proto(model_proto, compression_pipeline)[source]#

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:

A dictionary where the keys are tensor names and the

values are the corresponding tensors.

Return type:

tensor_dict