tf.math.squared_difference

Returns (x - y)(x - y) element-wise.

tf.math.squared_difference(
    x, y, name=None
)

NOTE: math.squared_difference supports broadcasting. More about broadcasting here

Args:

Returns:

A Tensor. Has the same type as x.