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
7963578f
Unverified
Commit
7963578f
authored
Feb 25, 2022
by
Pavel Belevich
Committed by
GitHub
Feb 25, 2022
Browse files
Fix dummy_inputs() to dummy_inputs in symbolic_trace doc (#15776)
parent
074645e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/utils/fx.py
src/transformers/utils/fx.py
+1
-1
No files found.
src/transformers/utils/fx.py
View file @
7963578f
...
@@ -561,7 +561,7 @@ def symbolic_trace(
...
@@ -561,7 +561,7 @@ def symbolic_trace(
model ([`PretrainedModel`]):
model ([`PretrainedModel`]):
The model to trace.
The model to trace.
input_names (`List[str]`, *optional*):
input_names (`List[str]`, *optional*):
The names of the inputs of the traced model. If unset, model.dummy_inputs
()
.keys() are used instead.
The names of the inputs of the traced model. If unset, model.dummy_inputs.keys() are used instead.
Returns:
Returns:
`torch.fx.GraphModule`: A GraphModule constructed by recording operations seen while tracing the model.
`torch.fx.GraphModule`: A GraphModule constructed by recording operations seen while tracing the model.
...
...
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