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

Method _is_function

tensorflow/python/framework/ops.py:3245–3254  ·  view source on GitHub ↗

Tests whether 'name' is registered in this graph's function library. Args: name: string op name. Returns: bool indicating whether or not 'name' is registered in function library.

(self, name)

Source from the content-addressed store, hash-verified

3243 return result
3244
3245 def _is_function(self, name):
3246 """Tests whether 'name' is registered in this graph's function library.
3247
3248 Args:
3249 name: string op name.
3250
3251 Returns:
3252 bool indicating whether or not 'name' is registered in function library.
3253 """
3254 return compat.as_str(name) in self._functions
3255
3256 def _get_function(self, name):
3257 """Returns the function definition for 'name'.

Callers 4

_GradientsHelperFunction · 0.80
_AddOpInternalMethod · 0.80
_IsOpFreeMethod · 0.80
is_functionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected