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

关于计算loss时对pad进行mask #3

Open
wflyfish opened this issue May 29, 2020 · 1 comment
Open

关于计算loss时对pad进行mask #3

wflyfish opened this issue May 29, 2020 · 1 comment

Comments

@wflyfish
Copy link

image
你好,想请问下,tf中添加真实句子长度sequence_lengths参数,是不是已经达到了计算loss时对pad进行mask的操作?

@DengYangyong
Copy link
Owner

我对tensorflow不熟悉啊,你看看这个api的源码吧

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