Closed GirinChutia closed 1 year ago
Hi! Thank you for your contribution! Please re-check all issue template checklists - unfilled issues would be closed automatically. And do not forget to join our slack for collaboration.
I think I have solved it. Mistake I think I did was, in my runner.train(), I have put
callbacks=[dl.BackwardCallback(metric_key="loss_ce1ce2")
which shouldn't be there if I put,
if self.is_train_loader:
self.engine.backward(loss_ce1ce2)
self.optimizer.step()
self.optimizer.zero_grad()
in 'handle_batch' method of my CustomRunner class.
Is my understanding correct? Please let me know.
Hi, here is an example of a callback that aggregates several loss functions. I think he should help you
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Error in Multi Criterion Training
<
Hi, I am trying to train a model using multi-criterion. Part of code for computing the loss is shown above. Doing so I am getting the following error.
_
_
Can anyone please check if I am doing the correct way?