Rephrase forward method to reduce ambiguity

This commit is contained in:
Christopher Goh 2019-10-07 11:03:49 +08:00 committed by Lysandre Debut
parent 0f65d8cbbe
commit 904158ac4d

View File

@ -423,7 +423,7 @@ Here is a quick summary of what you should take care of when migrating from `pyt
### Models always output `tuples`
The main breaking change when migrating from `pytorch-pretrained-bert` to `transformers` is that the model's forward method always outputs a `tuple` with various elements depending on the model and the configuration parameters.
The main breaking change when migrating from `pytorch-pretrained-bert` to `transformers` is that every model's forward method always outputs a `tuple` with various elements depending on the model and the configuration parameters.
The exact content of the tuples for each model is detailed in the models' docstrings and the [documentation](https://huggingface.co/transformers/).