KerasfromTF:lossisNaNandFailedtofinddataadapterthatcanhandleinput:,我试图找到一些可以解决我的问题的解决方案,但目前它们都不起作用。(如TensorflowValueError:Failedtofinddataadapterthatcanhandleinput)我正在通过Keras(来自TF)使用具有输入形状:(5000,1)和输出形状为(5000,16)的自定义数据集进行神经网络。输入是时间和周期数,输出是16个灯中每个灯的状态(0表示关闭或1表示打开)。我使用Adam作为优化器,我的损失是"categorical_cross