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