Open erkandiken opened 5 years ago
I have reworked the notebook with Tf 2.0.0-alpha0
model.compile(optimizer = tf.train.AdamOptimizer(), loss = 'sparse_categorical_crossentropy', metrics=['accuracy'])
throws
AttributeError: module 'tensorflow._api.v2.train' has no attribute 'AdamOptimizer'
model.compile(optimizer = tf.optimizers.Adam(), loss = 'sparse_categorical_crossentropy', metrics=['accuracy'])
seems to be (one of the) new way of passing optimizers.
I have reworked the notebook with Tf 2.0.0-alpha0
throws
AttributeError: module 'tensorflow._api.v2.train' has no attribute 'AdamOptimizer'
seems to be (one of the) new way of passing optimizers.