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

train_model.py #85 为什么要在这做 inputs.size(0) < 2*train_batch_size 这个判断呢? #45

Open
zxkplus opened this issue May 2, 2020 · 1 comment

Comments

@zxkplus
Copy link

zxkplus commented May 2, 2020

也就是在model中的 last_cont 是表示什么含义呢?对应于论文上的哪一部分呢? 根据上面的判断,只会在train 的最后一步,数据不够的一个batch的时候触发,为什么要单独处理呢?

@fayssica
Copy link

fayssica commented Jun 1, 2020

这个判断在LoadModel.py的最下面use_Asoftmax为True时才用到,作者在config.py中把use_Asoftmax置为False了,所以没有影响。

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