Update cross_entropy_loss.py
This commit is contained in:
parent
639ba008c7
commit
2200bfa1d6
1 changed files with 2 additions and 2 deletions
|
|
@ -400,6 +400,6 @@ if (Version(torch.__version__) < Version("2.4.0")) and \
|
|||
pass
|
||||
|
||||
# Patch CE Losses in transformers
|
||||
def patch_loss_functions():
|
||||
_patch_loss_functions(fast_cross_entropy_loss)
|
||||
def patch_loss_functions(torch_compile = True):
|
||||
_patch_loss_functions(fast_cross_entropy_loss, torch_compile = torch_compile)
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue