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
0abf5e8e
Unverified
Commit
0abf5e8e
authored
Jul 09, 2024
by
fxmarty
Committed by
GitHub
Jul 09, 2024
Browse files
FX symbolic_trace: do not test decoder_inputs_embeds (#31840)
only test input_embeds, not decoder_input_embeds
parent
952dfd48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_modeling_common.py
tests/test_modeling_common.py
+1
-1
No files found.
tests/test_modeling_common.py
View file @
0abf5e8e
...
...
@@ -1215,7 +1215,7 @@ class ModelTesterMixin:
(
past_mask
,
inputs_to_test
[
1
][
"attention_mask"
]),
dim
=
1
)
if
"inputs_embeds"
in
inspect
.
signature
(
model
.
forward
).
parameters
:
if
"inputs_embeds"
in
inspect
.
signature
(
model
.
forward
).
parameters
and
not
model
.
config
.
is_encoder_decoder
:
inputs_to_test
.
append
(
{
"inputs_embeds"
:
torch
.
rand
(
...
...
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