Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ _IsScalar
Function
_IsScalar
tensorflow/python/ops/math_grad.py:133–134 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
131
132
133
def
_IsScalar(x):
134
return
x._shape_tuple() is _empty_tuple
# pylint: disable=protected-access
135
136
137
@ops.RegisterGradient(
"Sum"
)
Callers
5
_AddGrad
Function · 0.85
_SubGrad
Function · 0.85
_MulGrad
Function · 0.85
_PowGrad
Function · 0.85
_MaximumMinimumGrad
Function · 0.85
Calls
1
_shape_tuple
Method · 0.45
Tested by
no test coverage detected