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
1a354d53
"...resnet50_tensorflow.git" did not exist on "025efbf3af5d1af57d264af2c26cd6e83fa71271"
Commit
1a354d53
authored
Jan 18, 2022
by
matt
Browse files
Revert previous change - that was meant to be in a branch!
parent
2085f209
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_modeling_tf_common.py
tests/test_modeling_tf_common.py
+1
-1
No files found.
tests/test_modeling_tf_common.py
View file @
1a354d53
...
@@ -1064,7 +1064,7 @@ class TFModelTesterMixin:
...
@@ -1064,7 +1064,7 @@ class TFModelTesterMixin:
config
,
inputs_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
config
,
inputs_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
for
model_class
in
self
.
all_model_classes
:
for
model_class
in
self
.
all_model_classes
:
model
=
model_class
(
config
)
model
=
model_class
(
config
)
if
getattr
(
model
,
"
hf_
compute_loss"
,
None
):
if
getattr
(
model
,
"compute_loss"
,
None
):
# The number of elements in the loss should be the same as the number of elements in the label
# The number of elements in the loss should be the same as the number of elements in the label
prepared_for_class
=
self
.
_prepare_for_class
(
inputs_dict
.
copy
(),
model_class
,
return_labels
=
True
)
prepared_for_class
=
self
.
_prepare_for_class
(
inputs_dict
.
copy
(),
model_class
,
return_labels
=
True
)
added_label
=
prepared_for_class
[
added_label
=
prepared_for_class
[
...
...
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