MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / has_function

Method has_function

tensorflow/python/eager/context.py:1005–1008  ·  view source on GitHub ↗

Check if a function `name` is registered.

(self, name)

Source from the content-addressed store, hash-verified

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.

Callers 2

is_functionFunction · 0.80
testIsFunctionMethod · 0.80

Calls 1

ensure_initializedMethod · 0.95

Tested by 1

testIsFunctionMethod · 0.64