message: Add additional add micro benchmarks
diff: @@ -238,7 +238,7 @@ class MicroBenchmarks(test.Benchmark):
  self._benchmark_create_constant(42, dtype=dtypes.int32, cached=False)
  - def _benchmark_add_scalars(self, a, b):
  + def _benchmark_add(self, a, b):
  def func():
  return memoryview(math_ops.add(a, b))
  @@ -248,10 +248,30 @@ class MicroBenchmarks(test.Benchmark):
  self._run(func, 30000)
  def benchmark_add_float_scalars(self):
  - self._benchmark_add_scalars(42.0, 24.0)
  + self._benchmark_add(42.0, 24.0)
  def benchmark_add_int32_scalars(self):
  - self._benchmark_add_scalars(42, 24)
  + self._benchmark_add(42, 24)
  +
  + def benchmark_add_float_scalar_tensor(self):
  + tensor_a = constant_op.constant(42.0)
  + tensor_b = constant_op.constant(24.0)
  + self._benchmark_add(tensor_a, tensor_b)
  +
  + def benchmark_add_int32_scalar_tensor(self):
  + tensor_a = constant_op.constant(42)
  + tensor_b = constant_op.constant(24)
  + self._benchmark_add(tensor_a, tensor_b)
  +
  + def benchmark_add_float_dense_tensor(self):
  + tensor_a = constant_op.constant([[42.0, 42.0], [42.0, 42.0]])
  + tensor_b = constant_op.constant([[24.0, 24.0], [24.0, 24.0]])
  + self._benchmark_add(tensor_a, tensor_b)
  +
  + def benchmark_add_int32_dense_tensor(self):
  + tensor_a = constant_op.constant([[42, 42], [42, 42]])
  + tensor_b = constant_op.constant([[24, 24], [24, 24]])
  + self._benchmark_add(tensor_a, tensor_b)
  def benchmark_create_float_tensor_from_list_CPU(self):
  self._benchmark_create_tensor([[3.0]], dtypes.float32.as_datatype_enum, CPU)
  