document-level-classification
document-level-classification copied to clipboard
Help
您好,请问在运行xlnet_hierarchical_attn模型时出现TypeError: linear(): argument 'input' (position 1) must be Tensor, not str怎么解决?
求问。你解决了吗?
加我QQ吧
------------------ 原始邮件 ------------------ 发件人: "qingyujean/document-level-classification" @.>; 发送时间: 2023年5月15日(星期一) 下午5:16 @.>; @.@.>; 主题: Re: [qingyujean/document-level-classification] Help (Issue #2)
求问。你解决了吗?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
我的qq 719717332
wwhss @.***> 于2023年5月15日周一 17:26写道:
加我QQ吧
------------------ 原始邮件 ------------------ 发件人: "qingyujean/document-level-classification" @.>; 发送时间: 2023年5月15日(星期一) 下午5:16 @.>; @.@.>; 主题: Re: [qingyujean/document-level-classification] Help (Issue #2)
求问。你解决了吗?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/qingyujean/document-level-classification/issues/2#issuecomment-1547501049, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALR4O4SJVCDNUEVYLIBJCFTXGHZGDANCNFSM5SE7NOGQ . You are receiving this because you commented.Message ID: @.***>
加我QQ吧 … ------------------ 原始邮件 ------------------ 发件人: "qingyujean/document-level-classification" @.>; 发送时间: 2023年5月15日(星期一) 下午5:16 @.>; @.@.>; 主题: Re: [qingyujean/document-level-classification] Help (Issue #2) 求问。你解决了吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
求加 719717332 很急!
你好 我也遇到了同样的问题,请问解决了么?
大佬 这块是啥原因呀forward last_hidden, mems = self.xlnet(**seg_inp, mems=mems) # last_hidden: [b, 150, 768] mems: list: [150, b, 768] ValueError: not enough values to unpack (expected 2, got 1)
您好,请问在运行xlnet_hierarchical_attn模型时出现TypeError: linear(): 参数 'input' (position 1) 必须是 Tensor, 而不是 str怎么解决?
请问如何解决的呢 是版本问题吗
@wwhss @lichengyang666 @gggdroa @DddJLin @qingyujean 请问兄弟解决了吗,可以告诉下什么问题吗
切换成transformers 3.0的版本就可以解决,我用的版本是 torch==1.13.0 transformers==3.4.0