AttributeError: 'Sequential' object has no attribute '_standardize_user_data' site:stackoverflow.com code example
Example: AttributeError: module 'tensorflow._api.v2.train' has no attribute 'GradientDescentOptimizer'
Use version for the TensorFlow 2.x:
tf.optimizers.SGD (learning_rate=0.001, name='SGD')