(self, epoch_idx)
help guest compute ftl loss. plain mode will skip/ in encrypted mode will decrypt received loss
help guest compute ftl loss. plain mode will skip/ in encrypted mode will decrypt received loss
help guest compute ftl loss . plain mode will skip / in encrypted mode will decrypt received loss
def compute_loss(self, epoch_idx):

        """
        help guest compute ftl loss. plain mode will skip/ in encrypted mode will decrypt received loss
        """

        if self.mode == 'plain':
            return

        elif self.mode == 'encrypted':
            encrypted_loss = self.transfer_variable.encrypted_loss.get(idx=0, suffix=(epoch_idx, 'send_loss'))
            rs = self.encrypter.recursive_decrypt(encrypted_loss)
            self.transfer_variable.decrypted_loss.remote(rs, suffix=(epoch_idx, 'get_loss'))
def compute_loss ( self , epoch_idx ) : if self . mode == 'plain' : return elif self . mode == 'encrypted' : encrypted_loss = self . transfer_variable . encrypted_loss . get ( idx = 0 , suffix = ( epoch_idx , 'send_loss' ) ) rs = self . encrypter . recursive_decrypt ( encrypted_loss ) self . transfer_variable . decrypted_loss . remote ( rs , suffix = ( epoch_idx , 'get_loss' ) )