use BaseModelOutput
as common interface for all different BaseModelOutputWith*
?
#11013
Labels
Feature request
Request for a new feature
Hello team,
I have been taking a look at the
different
output models from your models, and I wonder if it would make sense to inherit all theBaseModelOutputWithPool
and all the other flavours of modeling output, instead of usingModelOutput
.transformers/src/transformers/modeling_outputs.py
Line 24 in c301c26
We are trying to build a wrapper around many of the public models hosted on hugging face, and it would be useful to know if we can assume that all the potential
outputs
of the models will containhidden_states
. Since now they all only inherit fromModelOutput
it seems a little confusing.Am I missing something? Is it not something that can be assumed?
The text was updated successfully, but these errors were encountered: