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
4ad2f68e
"tests/test_tokenization_auto.py" did not exist on "63e3827c6bc5af9807b77e07fdcdae74b7d57161"
Unverified
Commit
4ad2f68e
authored
May 10, 2022
by
Sylvain Gugger
Committed by
GitHub
May 10, 2022
Browse files
Fix template init (#17163)
parent
e99f0efe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/__init__.py
...kiecutter-template-{{cookiecutter.modelname}}/__init__.py
+1
-1
No files found.
templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/__init__.py
View file @
4ad2f68e
...
...
@@ -169,7 +169,7 @@ if TYPE_CHECKING:
from
.
tokenization_
{{
cookiecutter
.
lowercase_modelname
}}
import
{{
cookiecutter
.
camelcase_modelname
}}
Tokenizer
try
:
if
not
is_to
rch
_available
():
if
not
is_to
kenizers
_available
():
raise
OptionalDependencyNotAvailable
()
except
OptionalDependencyNotAvailable
:
pass
...
...
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