class_docstr: Optimizer that implements the gradient descent algorithm.
    
class_docstr_tok: ["Optimizer","that","implements","the","gradient","descent","algorithm","."]
code: def _resource_apply_sparse_duplicate_indices(
      self, grad, handle, indices
  ):
      return resource_variable_ops.resource_scatter_add(
          handle.handle,
          indices,
          -grad
          * math_ops.cast(
              self._learning_rate_tensor, grad.dtype.base_dtype
          ),
      )
  
file_path: tensorflow/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 4 for calling the GradientDescentOptimizer obj's underlying member method code with example usage: obj._resource_apply_sparse_duplicate_indices(grad, handle, indices) and returns: resource_variable_ops