class_docstr: Optimizer that implements the gradient descent algorithm.
    
class_docstr_tok: ["Optimizer","that","implements","the","gradient","descent","algorithm","."]
code: def _apply_sparse_duplicate_indices(self, grad, var):
      delta = indexed_slices.IndexedSlices(
          grad.values
          * math_ops.cast(
              self._learning_rate_tensor, var.dtype.base_dtype
          ),
          grad.indices,
          grad.dense_shape,
      )
      return var.scatter_sub(delta, use_locking=self._use_locking)
  
file_path: tensorflow-upstream/tensorflow/python/training/gradient_descent.py
imports: from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import gen_training_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.training import optimizer
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 5 for calling the GradientDescentOptimizer obj's underlying member method code with example usage: obj._apply_sparse_duplicate_indices(grad, var) and returns: var