class_docstr: Benchmarks for reductions.
class_docstr_tok: ["Benchmarks","for","reductions","."]
code: def benchmark_reduce_sum_grad_eager(self):
      with context.eager_mode():
          tensor = array_ops.zeros([100, 1000])
  
          def fn():
              backprop.gradients_function(math_ops.reduce_sum, [0])(
                  tensor
              )
  
          self._run(fn, 10000)
  
file_path: tensorflow/tensorflow/python/kernel_tests/math_ops/reduce_benchmark_test.py
imports: import time
  import numpy
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.python.client import session
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the ReduceBenchmarks obj's underlying member method code with example usage: obj.benchmark_reduce_sum_grad_eager() without return types