[Python] Tensorflow._api.v2.train has no attribute 'AdamOptimizer'

Discussão em 'Python' iniciado por Stack, Março 30, 2025.

  1. Stack

    Stack Membro Participativo

    When using

    model.compile(optimizer = tf.train.AdamOptimizer(),
    loss = 'sparse_categorical_crossentropy',
    metrics=['accuracy'])


    in my Jupyter Notebook the following Error pops up:

    module 'tensorflow._api.v2.train' has no attribute 'AdamOptimizer'

    Tensorflow Version: 2.0.0-alpha0


    Do you think the only possibility is to downgrade the TF version?

    Continue reading...

Compartilhe esta Página