MCPcopy 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
133def _IsScalar(x):
134 return x._shape_tuple() is _empty_tuple # pylint: disable=protected-access
135
136
137@ops.RegisterGradient("Sum")

Callers 5

_AddGradFunction · 0.85
_SubGradFunction · 0.85
_MulGradFunction · 0.85
_PowGradFunction · 0.85
_MaximumMinimumGradFunction · 0.85

Calls 1

_shape_tupleMethod · 0.45

Tested by

no test coverage detected