Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
0e4f7270
Unverified
Commit
0e4f7270
authored
Aug 25, 2021
by
Lysandre Debut
Committed by
GitHub
Aug 25, 2021
Browse files
Remove side effects of disabling gradient computaiton (#13257)
parent
b1198a84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/onnx/convert.py
src/transformers/onnx/convert.py
+1
-0
No files found.
src/transformers/onnx/convert.py
View file @
0e4f7270
...
@@ -127,6 +127,7 @@ def export(
...
@@ -127,6 +127,7 @@ def export(
)
)
config
.
restore_ops
()
config
.
restore_ops
()
torch
.
set_grad_enabled
(
False
)
return
matched_inputs
,
onnx_outputs
return
matched_inputs
,
onnx_outputs
...
...
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