Unverified Commit 7014fc36 authored by Joao Gante's avatar Joao Gante Committed by GitHub
Browse files

Generate - Fix broken documentation links (#22078)

fix broken links
parent ade26bf9
...@@ -140,7 +140,7 @@ class FlaxGenerationMixin: ...@@ -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):
......
...@@ -455,7 +455,7 @@ class TFGenerationMixin: ...@@ -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: ...@@ -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>
......
...@@ -483,7 +483,7 @@ class GenerationMixin: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment