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

outputs = TotalLoss([2, 3])(roformer.inputs + roformer.outputs)怎么理解呢? #24

Open
XZhang00 opened this issue Mar 17, 2022 · 1 comment

Comments

@XZhang00
Copy link

请问一下outputs = TotalLoss([2, 3])(roformer.inputs + roformer.outputs)这句有点没看懂,可以简单讲一下吗?

@xzhws
Copy link

xzhws commented Apr 8, 2022

请问一下outputs = TotalLoss([2, 3])(roformer.inputs + roformer.outputs)这句有点没看懂,可以简单讲一下吗?
可以参考这里Loss的定义
https://github.com/bojone/bert4keras/blob/master/bert4keras/layers.py#L1482

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

2 participants