Remove record_gradient param from benchmark function
authorAkshay Modi <nareshmodi@google.com>
Wed, 28 Feb 2018 23:59:33 +0000 (15:59 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 1 Mar 2018 00:02:53 +0000 (16:02 -0800)
PiperOrigin-RevId: 187397610

tensorflow/python/eager/benchmarks_test.py

index 228ff62..527a919 100644 (file)
@@ -35,7 +35,6 @@ from tensorflow.python import pywrap_tensorflow
 from tensorflow.python.eager import backprop  # pylint: disable=unused-import
 from tensorflow.python.eager import context
 from tensorflow.python.eager import core
-from tensorflow.python.eager import execute
 from tensorflow.python.eager import function
 from tensorflow.python.eager import test
 from tensorflow.python.framework import dtypes
@@ -60,7 +59,7 @@ def c_tfe_py_fastpath_execute(a,
   ), "The prototype doesn't contain C code for graph construction"
   try:
     return pywrap_tensorflow.TFE_Py_FastPathExecute(
-        ctx._handle, ctx.device_name, "MatMul", execute.record_gradient, name,
+        ctx._handle, ctx.device_name, "MatMul", name,
         ctx._post_execution_callbacks, a, b, "transpose_a", transpose_a,
         "transpose_b", transpose_b)
   except core._NotOkStatusException as e: