alibaba-edu/simple-effective-text-matching

assert gnorm >= 0, 'encounter nan in gradients

Closed this issue · 2 comments

Hello

I get the following error when I try to train the model with my own training data.
What could be the error

image

Can you get the batch which causes NaN? Maybe by catching the exception and save the batch data (feed_dict).

I got 1 empty string "" in my training data.
I drop it then it works

Thanks

image