How can i get all outputs of the last transformer encoder in bert pretrained model and not just the cls token output?

前端 未结 0 1102
难免孤独
难免孤独 2020-12-09 19:53

I\'m using pytorch and this is the model from huggingface transformers https://huggingface.co/transformers/model_doc/bert.html#bertforsequenceclassification:

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题