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
9d2398fd
Commit
9d2398fd
authored
Nov 11, 2019
by
Julien Chaumond
Browse files
Ooopsie
parent
70d97ddd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
transformers/tests/modeling_tf_common_test.py
transformers/tests/modeling_tf_common_test.py
+1
-1
No files found.
transformers/tests/modeling_tf_common_test.py
View file @
9d2398fd
...
@@ -367,7 +367,7 @@ class TFCommonTestCases:
...
@@ -367,7 +367,7 @@ class TFCommonTestCases:
model
=
model_class
(
config
)
model
=
model_class
(
config
)
assert
isinstance
(
model
.
get_input_embeddings
(),
tf
.
keras
.
layers
.
Layer
)
assert
isinstance
(
model
.
get_input_embeddings
(),
tf
.
keras
.
layers
.
Layer
)
x
=
model
.
get_output_embeddings
()
x
=
model
.
get_output_embeddings
()
assert
x
is
None
or
instance
of
(
x
,
tf
.
keras
.
layers
.
Layer
)
assert
x
is
None
or
is
instance
(
x
,
tf
.
keras
.
layers
.
Layer
)
def
test_tie_model_weights
(
self
):
def
test_tie_model_weights
(
self
):
...
...
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