nan: https://stackoverflow.com/questions/39583752/nan-from-sparse-softmax-cross-entropy-with-logits-in-tensorflow?noredirect=1&lq=1 https://stackoverflow.com/questions/40050397/tensorflow-nan-loss-reasons https://github.com/tensorflow/tensorflow/issues/323