I want to use MomentumOptimizer in Tensorflow. However, since this optimizer uses some internal variable, attempting to use it without initializing this variabl
MomentumOptimizer
There is a more straightforward way:
optimizer = tf.train.AdamOptimizer() session.run(tf.variables_initializer(optimizer.variables()))