Update cross_entropy_loss.py

This commit is contained in:
Daniel Han-Chen 2024-02-26 03:55:15 +11:00
commit fd5389a485

View file

@ -260,7 +260,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: