Removes unnecessary unique id for defun (unlike Defun), defun can take non-unique function name for a process.

PiperOrigin-RevId: 218717914
This commit is contained in:
Shivani Agrawal 2018-10-25 11:12:27 -07:00 committed by TensorFlower Gardener
parent ac2a686c0e
commit 52c3f583aa

View File

@ -1808,8 +1808,7 @@ class StructuredFunctionWrapper(object):
".", "_")[:-2] if len(transformation_name) > 2 else ""
self._func_name = "_".join([
readable_transformation_name,
function_utils.get_func_name(func),
str(ops.uid())
function_utils.get_func_name(func)
])
# TODO(b/110122868): Enable this support for all `tf.data` functions.