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

模型输出问题 #19

Open
BEILOP opened this issue Mar 15, 2023 · 0 comments
Open

模型输出问题 #19

BEILOP opened this issue Mar 15, 2023 · 0 comments

Comments

@BEILOP
Copy link

BEILOP commented Mar 15, 2023

想问下,我想像bert输出那样取出最后一层的隐藏状态和pooler_output值,代码这么写有无问题:

model= UIE.frompretrained(路径)
last_hidden_state = model(inputs*).hidden_states[-1]
pooler_output = torch.max(model(inputs*).hidden_states[-1])

另外,模型输出的start_prob,end_prob是什么?

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

1 participant