(self, weight)
do secure aggregation step

        Args:
            weight: Aggregate weight.

        Returns:
do secure aggregation step
do secure aggregation step
def do_aggregation(self, weight):
        """
        do secure aggregation step

        Args:
            weight: Aggregate weight.

        Returns:

        """
        self.send_model(self._params, weight)
        agg_tensors: typing.List[torch.Tensor] = self.recv_model()
        for param, agg_tensor in zip(self._params, agg_tensors):
            if param.grad is None:
                continue
            param.data.copy_(agg_tensor)
def do_aggregation ( self , weight ) : self . send_model ( self . _params , weight ) agg_tensors : typing . List [ torch . Tensor ] = self . recv_model ( ) for param , agg_tensor in zip ( self . _params , agg_tensors ) : if param . grad is None : continue param . data . copy_ ( agg_tensor )