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
7014fc36
Unverified
Commit
7014fc36
authored
Mar 10, 2023
by
Joao Gante
Committed by
GitHub
Mar 10, 2023
Browse files
Generate - Fix broken documentation links (#22078)
fix broken links
parent
ade26bf9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
src/transformers/generation/flax_utils.py
src/transformers/generation/flax_utils.py
+1
-1
src/transformers/generation/tf_utils.py
src/transformers/generation/tf_utils.py
+2
-2
src/transformers/generation/utils.py
src/transformers/generation/utils.py
+9
-9
No files found.
src/transformers/generation/flax_utils.py
View file @
7014fc36
...
...
@@ -140,7 +140,7 @@ class FlaxGenerationMixin:
`do_sample=False`
You do not need to call any of the above methods directly. Pass custom parameter values to 'generate' instead. To
learn more about decoding strategies refer to the [text generation strategies guide](./generation_strategies).
learn more about decoding strategies refer to the [text generation strategies guide](.
.
/generation_strategies).
"""
def
prepare_inputs_for_generation
(
self
,
*
args
,
**
kwargs
):
...
...
src/transformers/generation/tf_utils.py
View file @
7014fc36
...
...
@@ -455,7 +455,7 @@ class TFGenerationMixin:
- *beam-search decoding* by calling [`~generation.TFGenerationMixin.beam_search`] if `num_beams>1`
You do not need to call any of the above methods directly. Pass custom parameter values to 'generate' instead. To
learn more about decoding strategies refer to the [text generation strategies guide](./generation_strategies).
learn more about decoding strategies refer to the [text generation strategies guide](.
.
/generation_strategies).
"""
_seed_generator
=
None
...
...
@@ -681,7 +681,7 @@ class TFGenerationMixin:
parameters to generate, e.g. `.generate(inputs, num_beams=4, do_sample=True)`.
For an overview of generation strategies and code examples, check out the [following
guide](./generation_strategies).
guide](.
.
/generation_strategies).
</Tip>
...
...
src/transformers/generation/utils.py
View file @
7014fc36
...
...
@@ -483,7 +483,7 @@ class GenerationMixin:
`constraints!=None` or `force_words_ids!=None`
You do not need to call any of the above methods directly. Pass custom parameter values to 'generate' instead. To
learn more about decoding strategies refer to the [text generation strategies guide](./generation_strategies).
learn more about decoding strategies refer to the [text generation strategies guide](.
.
/generation_strategies).
"""
def
prepare_inputs_for_generation
(
self
,
*
args
,
**
kwargs
):
...
...
@@ -1129,7 +1129,7 @@ class GenerationMixin:
parameters to generate(), e.g. `.generate(inputs, num_beams=4, do_sample=True)`.
For an overview of generation strategies and code examples, check out the [following
guide](./generation_strategies).
guide](.
.
/generation_strategies).
</Tip>
...
...
@@ -1699,7 +1699,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.contrastive_search`] directly. Use
generate() instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](.
.
/generation_strategies).
</Tip>
...
...
@@ -2057,7 +2057,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.greedy_search`] directly. Use generate()
instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](.
.
/generation_strategies).
</Tip>
...
...
@@ -2304,7 +2304,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.sample`] directly. Use generate() instead.
For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](.
.
/generation_strategies).
</Tip>
...
...
@@ -2573,7 +2573,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.beam_search`] directly. Use generate()
instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](.
.
/generation_strategies).
</Tip>
...
...
@@ -2897,7 +2897,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.beam_sample`] directly. Use generate()
instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](.
.
/generation_strategies).
</Tip>
...
...
@@ -3229,7 +3229,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.group_beam_search`] directly. Use
generate() instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](.
.
/generation_strategies).
</Tip>
...
...
@@ -3607,7 +3607,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.constrained_beam_search`] directly. Use
generate() instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](.
.
/generation_strategies).
</Tip>
...
...
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