Update cross_entropy_loss.py
This commit is contained in:
parent
a5abe39ded
commit
fd5389a485
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue