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

Function is_function

tensorflow/python/framework/function_def_to_graph.py:109–114  ·  view source on GitHub ↗

Checks for a function definition with `fname` in the current context.

(fname)

Source from the content-addressed store, hash-verified

107
108
109def is_function(fname):
110 """Checks for a function definition with `fname` in the current context."""
111 if context.executing_eagerly():
112 return context.context().has_function(fname)
113 else:
114 return ops.get_default_graph()._is_function(fname) # pylint: disable=protected-access
115
116
117def function_def_to_graph_def(fdef, input_shapes=None, copy_functions=True):

Callers 1

Calls 4

executing_eagerlyMethod · 0.80
has_functionMethod · 0.80
_is_functionMethod · 0.80
contextMethod · 0.45

Tested by

no test coverage detected