Skip to content

Divide by zero at line 695 in PosteriorBias/baseline_crf_prob.py #3

@ghzhang233

Description

@ghzhang233

verb_1, value_1, loss.item(), loss_total / ((total_steps) % (eval_frequency*len(train_loader) + 1)), (time.time() - time_all)))

It seems like that it should be
loss_total / ((total_steps - 1) % (eval_frequency*len(train_loader)) + 1)
rather than
loss_total / ((total_steps) % (eval_frequency*len(train_loader) + 1))
if I understand correctly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions