Improvement to eager linear regression benchmark
authorAkshay Modi <nareshmodi@google.com>
Tue, 6 Mar 2018 21:06:53 +0000 (13:06 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 6 Mar 2018 21:11:11 +0000 (13:11 -0800)
commitb7d97351198ee29a82a88c73e5d531baf07da211
treeb064f4b6dc59c9f0e8f6e28f426151f4b2d18f78
parente28aa1b817c179976b0535dd321c0dfde506725f
Improvement to eager linear regression benchmark

Before:
entry {
  name: "EagerLinearRegressionBenchmark.eager_train_cpu"
  iters: 2000
  wall_time: 2.45178794861
  extras {
    key: "examples_per_sec"
    value {
      double_value: 52206.7987456
    }
  }
}

After:
entry {
  name: "EagerLinearRegressionBenchmark.eager_train_cpu"
  iters: 2000
  wall_time: 1.9873790741
  extras {
    key: "examples_per_sec"
    value {
      double_value: 64406.4344182
    }
  }
}
PiperOrigin-RevId: 188068838
13 files changed:
tensorflow/contrib/eager/python/examples/linear_regression/linear_regression.py
tensorflow/python/eager/backprop.py
tensorflow/python/eager/context.py
tensorflow/python/eager/pywrap_tfe_src.cc
tensorflow/python/framework/tensor_shape.py
tensorflow/python/framework/test_util.py
tensorflow/python/layers/base.py
tensorflow/python/layers/core.py
tensorflow/python/ops/math_grad.py
tensorflow/python/ops/math_ops.py
tensorflow/python/ops/nn_ops.py
tensorflow/python/ops/resource_variable_ops.py
tensorflow/python/training/gradient_descent.py