Revert "XLNet use_cache refactor (#5770)" (#5854)

This reverts commit 0b2da0e592.
This commit is contained in:
Teven
2020-07-17 20:33:44 +02:00
committed by GitHub
parent 0b2da0e592
commit 615be03f9d
4 changed files with 45 additions and 133 deletions

View File

@@ -47,7 +47,7 @@ class PretrainedConfig(object):
Whether or not the model should return all hidden-states.
output_attentions (:obj:`bool`, `optional`, defaults to :obj:`False`):
Whether or not the model should returns all attentions.
use_cache (:obj:`bool`, `optional`, defaults to :obj:`True`):
use_cache (:obj:`bool`, `optional`, defaults to :obj:`False`):
Whether or not the model should return the last key/values attentions (not used by all models).
return_tuple (:obj:`bool`, `optional`, defaults to :obj:`False`):
Whether or not the model should return tuples instead of :obj:`ModelOutput` objects.