Skip to content

Commit 8567b76

Browse files
hawkinsptensorflower-gardener
authored andcommitted
Ensure that the function definition has been built when evaluating the captured variables of a function.
Change: 146511347
1 parent 1ce134d commit 8567b76

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tensorflow/python/framework/function.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ def declared_input_types(self):
481481
@property
482482
def captured_inputs(self):
483483
"""Returns the list of implicitly captured inputs."""
484+
self._create_definition_if_needed()
484485
return self._extra_inputs
485486

486487
def _create_definition_if_needed(self):

0 commit comments

Comments
 (0)