Returns external Tensors captured by this function. self.__call__(*args) passes `args + self.captured_inputs` to the function.
(self)
| 1285 | |
| 1286 | @property |
| 1287 | def captured_inputs(self): |
| 1288 | """Returns external Tensors captured by this function. |
| 1289 | |
| 1290 | self.__call__(*args) passes `args + self.captured_inputs` to the function. |
| 1291 | """ |
| 1292 | from_closures = nest.flatten([x() for x in self._captured_closures], |
| 1293 | expand_composites=True) |
| 1294 | return self._captured_inputs + from_closures |
| 1295 | |
| 1296 | @property |
| 1297 | def function_def(self): |