解决K is not defined

新的Keras 版本用 from tensorflow.compat.v1.keras import backend as K
 

你可能感兴趣的:(python)