NielsRogge / tapas_utils

A package containing utils for the PyTorch version of the Tapas algorithm.
10 stars 1 forks source link

ImportError: cannot import name 'TapasForQuestionAnswering' from 'transformers' (unknown location) #4

Open wentinghome opened 3 years ago

wentinghome commented 3 years ago

Hi,

I tried to execute from transformers import TapasForQuestionAnswering, the err shows up "ImportError: cannot import name 'TapasForQuestionAnswering' from 'transformers' (unknown location)".

My env is transformer 4.6.0 with pytorch 1.8.0, and I also install pytorch-scatter as required.

Could you suggest how to import TapasForQuestionAnswering? Thank you so much!

NielsRogge commented 3 years ago

Hi, can you share a Colab to reproduce this?

wentinghome commented 3 years ago

Hi, can you share a Colab to reproduce this?

Hi, thanks for your reply. I fixed it, it worked on python 3.6 rather than 3.7 in my conda env.