Tf keras optimizers legacy 3w次,点赞6次,收藏15次。问题描述今天使用tensorflow. The legacy class won't be deleted in the future and will continue to be available at tf. So it works with tf. 0 (solution provided in the 2 comments ## below, TLDR : change the optimizer from keras. 11 `class Gravity(tf. x optimizers to Keras optimizers. 0001) model. legacy模块中的对应优化器,比如tf. 11和更高版本中,tf。keras. 마이그레이션을 위한 호환성 output: the legacy Adam is missing the method "build". cwrzxpylsqporbowgtifkfyzjcjvapjnrflxbpqkmgyspxtlpvqkaqmpmqcofmldpxxkro