📅  最后修改于: 2022-03-11 14:45:16.745000             🧑  作者: Mango
tf.train.AdamOptimizer() => tf.optimizers.Adam()
From https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/optimizers
Answer source-> https://stackoverflow.com/questions/55318273/tensorflow-api-v2-train-has-no-attribute-adamoptimizer