diff options
author | Michael Case <mikecase@google.com> | 2018-05-11 10:58:17 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-11 11:01:30 -0700 |
commit | 9c82788d12037fc10b60b06092e94d513eb4aa14 (patch) | |
tree | e578a9cb80ee6e6a6fb6ff1e19cfc8c7dc0f522e /tensorflow/python/layers | |
parent | 1aa40a1ce7869b6557049bcc623dad452a69ef6c (diff) |
Move fn_args utility into core TensorFlow from Estimator.
Working on untangling TF/Estimator deps. Some core TF code depends on Estimator
by using the fn_args utility function within Estimator.
PiperOrigin-RevId: 196277612
Diffstat (limited to 'tensorflow/python/layers')
-rw-r--r-- | tensorflow/python/layers/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/python/layers/base.py b/tensorflow/python/layers/base.py index 64db49c900..2040e0081e 100644 --- a/tensorflow/python/layers/base.py +++ b/tensorflow/python/layers/base.py @@ -20,12 +20,12 @@ from __future__ import print_function import copy from tensorflow.python.eager import context -from tensorflow.python.estimator import util as estimator_util from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.keras._impl.keras.engine import base_layer from tensorflow.python.ops import variable_scope as vs from tensorflow.python.ops import variables as tf_variables +from tensorflow.python.util import function_utils from tensorflow.python.util import nest from tensorflow.python.util.tf_export import tf_export @@ -308,7 +308,7 @@ class Layer(base_layer.Layer): try: call_has_scope_arg = self._call_has_scope_arg except AttributeError: - self._call_fn_args = estimator_util.fn_args(self.call) + self._call_fn_args = function_utils.fn_args(self.call) self._call_has_scope_arg = 'scope' in self._call_fn_args call_has_scope_arg = self._call_has_scope_arg if call_has_scope_arg: |