(x, y, grad)
| 1079 | |
| 1080 | |
| 1081 | def _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") |
no test coverage detected