I want to use MomentumOptimizer in Tensorflow. However, since this optimizer uses some internal variable, attempting to use it without initializing this variabl
MomentumOptimizer
To fix the None problem just do:
self.opt_vars = [opt.get_slot(var, name) for name in opt.get_slot_names() for var in self.vars_to_train if opt.get_slot(var, name) is not None]