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

where does the mmi loss function locate? #8

Open
lsy641 opened this issue Apr 10, 2020 · 0 comments
Open

where does the mmi loss function locate? #8

lsy641 opened this issue Apr 10, 2020 · 0 comments

Comments

@lsy641
Copy link

lsy641 commented Apr 10, 2020

I just see two losscompute in train.py
`def make_loss_compute(model, tgt_vocab, opt):

if opt.copy_attn:
    compute = onmt.modules.CopyGeneratorLossCompute(
        model.generator, tgt_vocab, opt.copy_attn_force)
else:
    compute = onmt.Loss.NMTLossCompute(
        model.generator, tgt_vocab,
        label_smoothing=opt.label_smoothing)

if use_gpu(opt):
    compute.cuda()

return compute`
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