abhishekkrthakur / bert-sentiment

MIT License
269 stars 101 forks source link

bert output was returning a dict instead of tuple #20

Open raquelhortab opened 2 years ago

quickSilverShanks commented 3 months ago

Your fix works. I was just using this code with transformers v4.41.2 and it returns dictionary by default resulting in variable 'o2' taking the key value 'pooler output' instead of tensor. image

Thanks!