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

Function is_differentiable

tensorflow/python/ops/op_selector.py:25–29  ·  view source on GitHub ↗
(op)

Source from the content-addressed store, hash-verified

23
24
25def is_differentiable(op):
26 try:
27 return ops._gradient_registry.lookup(op.op_def.name) is not None # pylint: disable=protected-access
28 except LookupError:
29 return False
30
31
32def is_iterable(obj):

Callers 1

_get_inputsFunction · 0.85

Calls 1

lookupMethod · 0.45

Tested by

no test coverage detected