(self, epoch)
sync synchronize self.performance_recorder
sync synchronize self.performance_recorder
sync synchronize self . performance_recorder
def sync_performance_recorder(self, epoch):
        """
        sync synchronize self.performance_recorder
        """
        if self.mode == consts.HETERO and self.role == consts.GUEST:
            recorder_to_send = copy.deepcopy(self.performance_recorder)
            recorder_to_send.cur_best_performance = None
            if self.arbiter_comm:
                self.transfer_inst.validation_status.remote(recorder_to_send, idx=-1, suffix=(epoch,))
            else:
                self.transfer_inst.validation_status.remote(recorder_to_send, idx=-1, suffix=(epoch,),
                                                            role=consts.HOST)

        elif self.mode == consts.HETERO:
            self.performance_recorder = self.transfer_inst.validation_status.get(idx=-1, suffix=(epoch,))[0]

        else:
            return
def sync_performance_recorder ( self , epoch ) : if self . mode == consts . HETERO and self . role == consts . GUEST : recorder_to_send = copy . deepcopy ( self . performance_recorder ) recorder_to_send . cur_best_performance = None if self . arbiter_comm : self . transfer_inst . validation_status . remote ( recorder_to_send , idx = - 1 , suffix = ( epoch , ) ) else : self . transfer_inst . validation_status . remote ( recorder_to_send , idx = - 1 , suffix = ( epoch , ) , role = consts . HOST ) elif self . mode == consts . HETERO : self . performance_recorder = self . transfer_inst . validation_status . get ( idx = - 1 , suffix = ( epoch , ) ) [ 0 ] else : return