(self, cipher, n_iter_, batch_index)
return de_loss_list
Decrypt loss from guest
Decrypt loss from guest
Decrypt loss from guest
def compute_loss(self, cipher, n_iter_, batch_index):
        """
        Decrypt loss from guest
        """
        current_suffix = (n_iter_, batch_index)
        loss_list = self.sync_loss_info(suffix=current_suffix)
        de_loss_list = cipher.decrypt_list(loss_list)
        return de_loss_list
def compute_loss ( self , cipher , n_iter_ , batch_index ) : current_suffix = ( n_iter_ , batch_index ) loss_list = self . sync_loss_info ( suffix = current_suffix ) de_loss_list = cipher . decrypt_list ( loss_list ) return de_loss_list