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
71a5ed34
Unverified
Commit
71a5ed34
authored
May 23, 2023
by
Yih-Dar
Committed by
GitHub
May 23, 2023
Browse files
Fix a `BridgeTower` test (#23694)
fix Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
1fe1e3ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tests/models/bridgetower/test_modeling_bridgetower.py
tests/models/bridgetower/test_modeling_bridgetower.py
+2
-1
No files found.
tests/models/bridgetower/test_modeling_bridgetower.py
View file @
71a5ed34
...
...
@@ -627,7 +627,8 @@ class BridgeTowerModelTrainingTest(unittest.TestCase):
non_used_layer_names
=
[
"text_model.pooler"
]
if
model_class
==
BridgeTowerForMaskedLM
:
non_used_layer_names
=
non_used_layer_names
+
[
"cross_modal_image_layers.5"
,
# This number `1` actually depends on the number of layers in `cross_modal_image_layers` (by minus 1)
"cross_modal_image_layers.1"
,
"cross_modal_image_pooler"
,
"cross_modal_text_pooler"
,
]
...
...
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