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

Function _ShapesFullySpecifiedAndEqual

tensorflow/python/ops/math_grad.py:1081–1088  ·  view source on GitHub ↗
(x, y, grad)

Source from the content-addressed store, hash-verified

1079
1080
1081def _ShapesFullySpecifiedAndEqual(x, y, grad):
1082 # pylint: disable=protected-access
1083 x_shape = x._shape_tuple()
1084 y_shape = y._shape_tuple()
1085 grad_shape = grad._shape_tuple()
1086 # pylint: enable=protected-access
1087 return (x_shape == y_shape and x_shape == grad_shape and
1088 x_shape is not None and None not in x_shape)
1089
1090
1091@ops.RegisterGradient("Add")

Callers 5

_AddGradFunction · 0.85
_SubGradFunction · 0.85
_MulGradFunction · 0.85
_MulNoNanGradFunction · 0.85
_SquaredDifferenceGradFunction · 0.85

Calls 1

_shape_tupleMethod · 0.45

Tested by

no test coverage detected