How to set an adaptive learning rate for Tensorflow’s GradientDescentOptimizer in Python Use a placeholder variable Upgrade to Tensorflow v2