Update cross_entropy_loss.py
This commit is contained in:
parent
b74a86a2bd
commit
88fa0eb7f3
1 changed files with 1 additions and 1 deletions
|
|
@ -434,7 +434,7 @@ replacement = """ loss = None
|
|||
function = \
|
||||
function[:function.find(" loss = None")] + \
|
||||
replacement + \
|
||||
function[ function.find("if not return_dict"):]
|
||||
function[ function.find(" if not return_dict"):]
|
||||
function = function.replace("logits = logits.float()", "\n")
|
||||
# Missed spaces
|
||||
function = function.split("\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue