Closed mahao01 closed 2 years ago
Hi, your code looks fine to me so I'm not sure why the loss didn't decrease. I've confirmed with a simple code that the CRF works fine. Could you post the smallest working code to reproduce the behaviour?
Thanks very much, I'll check my code again.
I use CRF as my model loss like Issue #29, but I found loss didn't decrease! I replace it with
BCEWithLogitsLoss
and then loss decreases. I havey: (seq_length,)
andy_pred: (seq_length, num_classes)
. Here is my code:I wonder whether I use the library by mistake? Looking for your help, thanks!