Problem about predict nan after few batch

I use tensorflow.keras reslove this problem, so maybe change tenorflow is better.