I tried to find the reason from two aspects. On the one hand, The network didn’t work. On the other hand,the loss was not calculated correctly.  I think the former is more likely， but I can’t find out any issue. Maybe the problem is in the input? I’m sorry I had not helped.