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
335c0ca3
Unverified
Commit
335c0ca3
authored
Apr 02, 2021
by
versis
Committed by
GitHub
Apr 02, 2021
Browse files
fixed typo: logging instead of logger (#11025)
parent
34e1bec6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/research_projects/zero-shot-distillation/distill_classifier.py
...rch_projects/zero-shot-distillation/distill_classifier.py
+1
-1
No files found.
examples/research_projects/zero-shot-distillation/distill_classifier.py
View file @
335c0ca3
...
@@ -152,7 +152,7 @@ def get_entailment_id(config):
...
@@ -152,7 +152,7 @@ def get_entailment_id(config):
for
label
,
ind
in
config
.
label2id
.
items
():
for
label
,
ind
in
config
.
label2id
.
items
():
if
label
.
lower
().
startswith
(
"entail"
):
if
label
.
lower
().
startswith
(
"entail"
):
return
ind
return
ind
logg
ing
.
warning
(
"Could not identify entailment dimension from teacher config label2id. Setting to -1."
)
logg
er
.
warning
(
"Could not identify entailment dimension from teacher config label2id. Setting to -1."
)
return
-
1
return
-
1
...
...
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