zoulingqi

Results 2 issues of zoulingqi

Hi, i have met the problem loss=nan too.Here is my solution. Because the loss function is (sqrt(g_gound)-sqrt(g_hat))^2,grad will be nan when g_hat is 0.The code below may fix the problem:...

hello, In your code: Exp[i] = Exp[i]/sqrt(1e-15+Ex[i]*Ep[i]). while bandE[i]=sqrt(sum[i]) in the function compute_band_corr. I think the code should be if(Ex[i]*Ep[i]==0) Exp[i] = 0;(or 1?) else Exp[i] = Exp[i]/(1e-15+Ex[i]*Ep[i]). And this...