document-level-classification icon indicating copy to clipboard operation
document-level-classification copied to clipboard

Help

Open wwhss opened this issue 3 years ago • 9 comments

您好,请问在运行xlnet_hierarchical_attn模型时出现TypeError: linear(): argument 'input' (position 1) must be Tensor, not str怎么解决?

wwhss avatar Mar 31 '22 10:03 wwhss

求问。你解决了吗?

DddJLin avatar May 15 '23 09:05 DddJLin

加我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: @.***>

wwhss avatar May 15 '23 09:05 wwhss

我的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: @.***>

DddJLin avatar May 15 '23 11:05 DddJLin

加我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 很急!

DddJLin avatar May 16 '23 02:05 DddJLin

你好 我也遇到了同样的问题,请问解决了么?

lichengyang666 avatar Jun 06 '23 09:06 lichengyang666

大佬 这块是啥原因呀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)

lichengyang666 avatar Jun 07 '23 03:06 lichengyang666

您好,请问在运行xlnet_hierarchical_attn模型时出现TypeError: linear(): 参数 'input' (position 1) 必须是 Tensor, 而不是 str怎么解决?

请问如何解决的呢 是版本问题吗

gggdroa avatar Jul 06 '23 08:07 gggdroa

@wwhss @lichengyang666 @gggdroa @DddJLin @qingyujean 请问兄弟解决了吗,可以告诉下什么问题吗

yihp avatar Nov 20 '23 07:11 yihp

切换成transformers 3.0的版本就可以解决,我用的版本是 torch==1.13.0 transformers==3.4.0

ifastcc avatar Jan 06 '24 00:01 ifastcc