Open ChenRui077 opened 2 years ago
Maybe the loss value 6.42e+04
is too large and makes the network training blow up.
Hi all, I constrained it so that the model would not initialise until all the losses in steps 0 and 1 are less than 1 (I also varied this number to see if it made a difference, but I never had it over 4). However, I still get the problem that at Step 1000, I get NaNs in the train and test losses. Any ideas? Thanks in advance!
See FAQ "Q: I failed to train the network or get the right solution, e.g., large training loss, unbalanced losses."
Dear Prof. Lu @lululxvi, I'm trying to solve a Schrodinger equation after Madelung transformation, but while training the model I got several NAN values. The equation is as follows:
with discontinuous Initial Value Condition (for example rho = 1 while x<0, rho = 0.25 while x>=0, so is t, and I use a tanh function to fit it). The range of x is [-30,30] and the range of t is [0,10].
Kindly suggest how to fix it.
Code is:
and the error messages are: