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
7b55bb45
Unverified
Commit
7b55bb45
authored
Nov 14, 2022
by
Joao Gante
Committed by
GitHub
Nov 14, 2022
Browse files
Generate: TF sample doctest result update (#20208)
parent
d24e84d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/generation/tf_utils.py
src/transformers/generation/tf_utils.py
+1
-1
No files found.
src/transformers/generation/tf_utils.py
View file @
7b55bb45
...
@@ -2671,7 +2671,7 @@ class TFGenerationMixin:
...
@@ -2671,7 +2671,7 @@ class TFGenerationMixin:
>>> outputs = model.sample(input_ids, logits_processor=logits_processor, logits_warper=logits_warper)
>>> outputs = model.sample(input_ids, logits_processor=logits_processor, logits_warper=logits_warper)
>>> tokenizer.batch_decode(outputs, skip_special_tokens=True)
>>> tokenizer.batch_decode(outputs, skip_special_tokens=True)
['Today is a beautiful day, and
it\'s all about the future."\n\nThe announcement comes three
']
['Today is a beautiful day, and
I love my country. But when I look at Donald Trump,
']
```"""
```"""
# 1. init greedy_search values
# 1. init greedy_search values
...
...
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