Update cross_entropy_loss.py

This commit is contained in:
Daniel Han-Chen 2024-02-24 18:04:40 +11:00
commit d5e625b674

View file

@ -231,7 +231,7 @@ class Fast_CrossEntropyLoss(torch.autograd.Function):
pass
# slow_cross_entropy_loss = torch.nn.functional.cross_entropy
slow_cross_entropy_loss = torch.nn.functional.cross_entropy
def fast_cross_entropy_loss(logits, labels):
"""
Arguments: