module ‘tensorflow.compat.v2.__internal__‘ has no attribute ‘register_clear_session_function‘ 解决方法
fromkeras.modelsimportSequentialfromkeras.layers.coreimportDense,Dropout,Activationfromkeras.optimizersimportSGD,Adamfromkeras.utilsimportnp_utilsfromkeras.datasetsimportmnist版本:tensorflow:2.5.1keras: