Solved by Nikronic in post #3 
              
              
                @razvanc92 
I just found the solution using distribution package too. 
As I mentioned in the previous post, the target should be log_probs, so based on, we must have these: 
preds_torch = torch.distributions.Categorical(probs=torch.from_numpy(preds))
labels_torch = torch.distributions.Categorical(lo…