Hi,

The first one computes the 2 norm, so you should square it if you want a squared norm.
The second one computes what you want but also sums over dimension 1.
The last one also computes what you want but does not do any reduction.