我想在TensorFlow中构建分类器时使用具有动量的梯度下降(跟踪先前的渐变).
所以我不想使用tensorflow.train.GradientDescentOptimizer但我想用来tensorflow.gradients计算渐变并跟踪以前的渐变并根据所有这些来更新权重.
tensorflow.train.GradientDescentOptimizer
tensorflow.gradients
我如何在TensorFlow中执行此操作?
gradient-descent tensorflow
gradient-descent ×1
tensorflow ×1