Closed 1054651112 closed 3 years ago
Hi, with this limited information, I'm not sure what causes this error. The first thing to check is, what version of transformers library are you using? I use 3.4.0 for this project.
Thank you very much for your reply. I'll try changing the version of transformers.
------------------ 原始邮件 ------------------ 发件人: "wenliangdai/Multimodal-End2end-Sparse" @.>; 发送时间: 2021年6月20日(星期天) 下午2:21 @.>; @.**@.>; 主题: Re: [wenliangdai/Multimodal-End2end-Sparse] string indices must be integers (#3)
Hi, with this limited information, I'm not sure what causes this error. The first thing to check is, what version of transformers library are you using? I use 3.4.0 for this project.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi,When I was running the code, I encountered an error as follows: cls_feature = last_hidden_state[:, 0] TypeError: string indices must be integers
I don't know the reason, I‘m looking forward to your answer! Thank you!