Checks for a function definition with `fname` in the current context.
(fname)
| 107 | |
| 108 | |
| 109 | def 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 | |
| 117 | def function_def_to_graph_def(fdef, input_shapes=None, copy_functions=True): |
no test coverage detected