Generate - Fix broken documentation links (#22078)

fix broken links
This commit is contained in:
Joao Gante 2023-03-10 13:28:30 +00:00 committed by GitHub
parent ade26bf991
commit 7014fc360d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View File

@ -140,7 +140,7 @@ class FlaxGenerationMixin:
`do_sample=False` `do_sample=False`
You do not need to call any of the above methods directly. Pass custom parameter values to 'generate' instead. To 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): def prepare_inputs_for_generation(self, *args, **kwargs):

View File

@ -455,7 +455,7 @@ class TFGenerationMixin:
- *beam-search decoding* by calling [`~generation.TFGenerationMixin.beam_search`] if `num_beams>1` - *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 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 _seed_generator = None
@ -681,7 +681,7 @@ class TFGenerationMixin:
parameters to generate, e.g. `.generate(inputs, num_beams=4, do_sample=True)`. 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 For an overview of generation strategies and code examples, check out the [following
guide](./generation_strategies). guide](../generation_strategies).
</Tip> </Tip>

View File

@ -483,7 +483,7 @@ class GenerationMixin:
`constraints!=None` or `force_words_ids!=None` `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 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): 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)`. 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 For an overview of generation strategies and code examples, check out the [following
guide](./generation_strategies). guide](../generation_strategies).
</Tip> </Tip>
@ -1699,7 +1699,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.contrastive_search`] directly. Use 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 generate() instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies). guide](../generation_strategies).
</Tip> </Tip>
@ -2057,7 +2057,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.greedy_search`] directly. Use generate() 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 instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies). guide](../generation_strategies).
</Tip> </Tip>
@ -2304,7 +2304,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.sample`] directly. Use generate() instead. 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 For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies). guide](../generation_strategies).
</Tip> </Tip>
@ -2573,7 +2573,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.beam_search`] directly. Use generate() 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 instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies). guide](../generation_strategies).
</Tip> </Tip>
@ -2897,7 +2897,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.beam_sample`] directly. Use generate() 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 instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies). guide](../generation_strategies).
</Tip> </Tip>
@ -3229,7 +3229,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.group_beam_search`] directly. Use 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 generate() instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies). guide](../generation_strategies).
</Tip> </Tip>
@ -3607,7 +3607,7 @@ class GenerationMixin:
In most cases, you do not need to call [`~generation.GenerationMixin.constrained_beam_search`] directly. Use 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 generate() instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies). guide](../generation_strategies).
</Tip> </Tip>