Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
38dfb40a
Unverified
Commit
38dfb40a
authored
Jan 31, 2022
by
Suraj Patil
Committed by
GitHub
Jan 31, 2022
Browse files
import torch.utils.checkpoint (#15427)
parent
f624249d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/models/xglm/modeling_xglm.py
src/transformers/models/xglm/modeling_xglm.py
+1
-0
No files found.
src/transformers/models/xglm/modeling_xglm.py
View file @
38dfb40a
...
...
@@ -20,6 +20,7 @@ import random
from
typing
import
Optional
,
Tuple
import
torch
import
torch.utils.checkpoint
from
torch
import
nn
from
torch.nn
import
CrossEntropyLoss
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment