Greetings I have some errors in the evaluation set in the sense that I sometimes achieve validation accuracies of 127%.
I may be an error on cuda, or something?
Thanks in advance!
def evaluation(model, loader, epoch, mini_batch_size, sequence_size):
    model.eval()
    test_loss = 0
    correct = 0
    size_input = mini_batch_size * sequence_size
    for (inputs, labels, agreement_score) in loader:
        if(inputs.size(0) == size_input):
            inputs = inputs.clone().reshape(mini_batch_size, sequence_size, inputs.size(1))
            labels = labels.clone().squeeze().reshape(mini_batch_size*sequence_size)
            agreement_score = agreement_score.clone().squeeze().reshape(mini_batch_size*sequence_size)
        else:
            (inputs, labels, agreement_score) = padd_incomplete_sequences(inputs, labels, agreement_score, mini_batch_size, sequence_size)
            
        
        inputs, labels, agreement_score = Variable(inputs.cuda()), Variable(labels.cuda()), Variable(agreement_score.cuda())
       
        
        output = model(inputs)
        
        loss = criterion(output, labels)
        loss = loss.mean()
        
        #sum up batch loss
        test_loss += loss.item()
        pred = output.data.max(1, keepdim = True)[1]
        correct += pred.eq(labels.data.view_as(pred)).cuda().sum()
        
    
    
    accuracy = 100. * correct / len(loader.dataset)
    
    validation_accuracy.append(accuracy)
    validation_loss.append(loss.item())
    validation_epochs.append(epoch)
    
    #test_loss /= len(test_loader.dataset)
    print('\nTest set: loss: {:.4f}, Accuracy: {}/{} ({:.0f}%)\n'.format(
    test_loss,
    correct,
    len(loader.dataset),
    accuracy))

Outputs:
Test set: loss: 1.6754, Accuracy: 329153/258686 (127%)