Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argument 'input' (position 1) must be Tensor, not str #202

Open
nlpCSir opened this issue Oct 18, 2021 · 2 comments
Open

argument 'input' (position 1) must be Tensor, not str #202

nlpCSir opened this issue Oct 18, 2021 · 2 comments

Comments

@nlpCSir
Copy link

nlpCSir commented Oct 18, 2021

argument 'input' (position 1) must be Tensor, not str

@danxu0621
Copy link

我也有这个问题 然后重新用conda install -c huggingface transformers语句安装了transformer之后运行还是这样报错 请问是我安装transformer的语句不对吗

@wkk-nlp
Copy link

wkk-nlp commented May 4, 2022

_, pooled_output = self.bert(text_bert_indices, token_type_ids=bert_segments_ids, return_dict=False)
you can write like this in bert_spc.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants