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
021b52e7
Unverified
Commit
021b52e7
authored
Jan 19, 2022
by
Yih-Dar
Committed by
GitHub
Jan 19, 2022
Browse files
fix name 'TFFunnelTokenizer' is not defined (#15225)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
653379c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/funnel/modeling_tf_funnel.py
src/transformers/models/funnel/modeling_tf_funnel.py
+1
-1
No files found.
src/transformers/models/funnel/modeling_tf_funnel.py
View file @
021b52e7
...
@@ -1273,7 +1273,7 @@ class TFFunnelForPreTraining(TFFunnelPreTrainedModel):
...
@@ -1273,7 +1273,7 @@ class TFFunnelForPreTraining(TFFunnelPreTrainedModel):
>>> from transformers import FunnelTokenizer, TFFunnelForPreTraining
>>> from transformers import FunnelTokenizer, TFFunnelForPreTraining
>>> import torch
>>> import torch
>>> tokenizer =
TF
FunnelTokenizer.from_pretrained("funnel-transformer/small")
>>> tokenizer = FunnelTokenizer.from_pretrained("funnel-transformer/small")
>>> model = TFFunnelForPreTraining.from_pretrained("funnel-transformer/small")
>>> model = TFFunnelForPreTraining.from_pretrained("funnel-transformer/small")
>>> inputs = tokenizer("Hello, my dog is cute", return_tensors="tf")
>>> inputs = tokenizer("Hello, my dog is cute", return_tensors="tf")
...
...
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