Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
25
def
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
32
def
is_iterable(obj):
Callers
1
_get_inputs
Function · 0.85
Calls
1
lookup
Method · 0.45
Tested by
no test coverage detected