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:
parent
ac2a686c0e
commit
52c3f583aa
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user