Ensure that the function definition has been built when evaluating the captured variables of a function.

Change: 146511347
This commit is contained in:
Peter Hawkins 2017-02-03 13:39:26 -08:00 committed by TensorFlower Gardener
parent 1ce134df65
commit 8567b76199

View File

@ -481,6 +481,7 @@ class _DefinedFunction(object):
@property
def captured_inputs(self):
"""Returns the list of implicitly captured inputs."""
self._create_definition_if_needed()
return self._extra_inputs
def _create_definition_if_needed(self):