Skip to content
Snippets Groups Projects
Commit bdb49c45 authored by umlauf's avatar umlauf
Browse files

dimension

parent 34284b80
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,7 @@ def train(model, name, seed,gradient_accumulation_steps,mixup, threshold, lambda
return evaluation_test, evaluation_train
def SoftCrossEntropyLoss (input, target):
logprobs = torch.nn.functional.log_softmax (input, dim = 2)
logprobs = torch.nn.functional.log_softmax (input, dim = 0)
return -(target * logprobs).sum() / input.shape[0]
def mixup_function(batch_of_matrices, batch_of_labels, l, t):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment