From 8567b761999bd051eaebdae5f2bd6d751eb4ec81 Mon Sep 17 00:00:00 2001 From: Peter Hawkins Date: Fri, 3 Feb 2017 13:39:26 -0800 Subject: [PATCH] Ensure that the function definition has been built when evaluating the captured variables of a function. Change: 146511347 --- tensorflow/python/framework/function.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tensorflow/python/framework/function.py b/tensorflow/python/framework/function.py index 63c7c28b0e7..feba9757082 100644 --- a/tensorflow/python/framework/function.py +++ b/tensorflow/python/framework/function.py @@ -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):