tf.nn.l2_loss

L2 Loss.

tf.nn.l2_loss(
    t, name=None
)

Computes half the L2 norm of a tensor without the sqrt:

output = sum(t ** 2) / 2

Args:

Returns:

A Tensor. Has the same type as t.