Yes, as the error says, sigmoid_cuda not implemented for Long type which currently, the output of argmax is Long.
Add float() to output to convert it to float.
outputs = torch.argmax(outputs, 1, keepdim=True).float()