from tensorflow.contrib.opt import AdamWOptimizer报红 解决办法: from tensorflow.python.training.adam import AdamOptimizer as adam