diff options
author | 2018-09-14 08:53:44 -0700 | |
---|---|---|
committer | 2018-09-14 08:57:39 -0700 | |
commit | 85b0ec839b6954fc7d3f396406e8797cc984d3cc (patch) | |
tree | e01f380d4e554aa75ac47c7db8f7fd6825879f60 /tensorflow/python/eager | |
parent | 6aebb0866718cae2c921e875f3fd74573ee9acc8 (diff) |
Fix bug preventing one from not specifying additional function attributes.
PiperOrigin-RevId: 212989480
Diffstat (limited to 'tensorflow/python/eager')
-rw-r--r-- | tensorflow/python/eager/function.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/eager/function.py b/tensorflow/python/eager/function.py index 552ed29f65..962e334b27 100644 --- a/tensorflow/python/eager/function.py +++ b/tensorflow/python/eager/function.py @@ -529,7 +529,7 @@ class Function(object): self._num_outputs = len(self._func_graph.outputs) self._output_shapes = tuple( output.shape for output in self._func_graph.outputs) - self._attrs = _parse_func_attrs(attrs) + self._attrs = _parse_func_attrs(attrs or {}) self._device_functions = tuple( self._func_graph._device_functions_outer_to_inner) # pylint: disable=protected-access |