Map of tensor ids of variable handles to variables which are captured.
(self)
| 700 | |
| 701 | @property |
| 702 | def variable_captures(self): |
| 703 | """Map of tensor ids of variable handles to variables which are captured.""" |
| 704 | return { |
| 705 | ops.tensor_id(self._captures[ops.tensor_id(v.handle)][1]): v |
| 706 | for v in self.variables |
| 707 | if ops.tensor_id(v.handle) in self._captures |
| 708 | } |
| 709 | |
| 710 | def mark_as_unsaveable(self, error_message): |
| 711 | """Marks this FuncGraph as unsaveable. |