报错:module ‘tensorflow.compat.v1’ has no attribute ‘contrib’ 原因:TensorFlowv2.xx版本移除了 解决办法:使用tf.keras.initializers.glorot_uniform进行初始化