aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar drpngx <drpngx@users.noreply.github.com>2017-12-26 17:26:57 -0800
committerGravatar GitHub <noreply@github.com>2017-12-26 17:26:57 -0800
commit479b0fd7d547331778c47c6fccc8685278e5ba8e (patch)
tree59dfc0890f6ffc24da0bd4a67377f65d1632cfee
parentbbc5ea48a72c296c2defe41fd241d362f6d963ef (diff)
Remove unwrapping for function argument inspection in Estimator. (#15646)
PiperOrigin-RevId: 180147476
-rw-r--r--tensorflow/python/estimator/util.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tensorflow/python/estimator/util.py b/tensorflow/python/estimator/util.py
index b31486dfa1..b7ba76d871 100644
--- a/tensorflow/python/estimator/util.py
+++ b/tensorflow/python/estimator/util.py
@@ -13,7 +13,7 @@
# limitations under the License.
# ==============================================================================
-"""Utility to retrieve function args.."""
+"""Utility to retrieve function args."""
from __future__ import absolute_import
from __future__ import division
@@ -21,7 +21,6 @@ from __future__ import print_function
import functools
-from tensorflow.python.util import tf_decorator
from tensorflow.python.util import tf_inspect
@@ -45,7 +44,6 @@ def fn_args(fn):
Raises:
ValueError: if partial function has positionally bound arguments
"""
- _, fn = tf_decorator.unwrap(fn)
if isinstance(fn, functools.partial):
args = fn_args(fn.func)
args = [a for a in args[len(fn.args):] if a not in (fn.keywords or [])]