-
Notifications
You must be signed in to change notification settings - Fork 39
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
detach #6
Comments
你好请问下相关细节,打扰了。 loss = loss + cfg.XBM.WEIGHT * xbm_loss,这样就是2倍batch的数据在做对比loss,为什么不直接loss=xbm_loss了 |
|
针对你说的2 我仔细看了代码 当前代码是先把当前的mini_batch enqueue到xbm里面,之后才计算的loss |
我只使用xbm_loss。出现了loss不收敛的情况 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在do_train里必须用detach截断feats和targets吗?
The text was updated successfully, but these errors were encountered: