Check if a function `name` is registered.
(self, name)
| 1003 | pywrap_tensorflow.TFE_ContextRemoveFunction(self._handle, name) |
| 1004 | |
| 1005 | def has_function(self, name): |
| 1006 | """Check if a function `name` is registered.""" |
| 1007 | self.ensure_initialized() |
| 1008 | return bool(pywrap_tensorflow.TFE_ContextHasFunction(self._handle, name)) |
| 1009 | |
| 1010 | def add_post_execution_callback(self, callback): |
| 1011 | """Add a post-execution callback to the context. |