Hi all.

I have completed C3_W2_RecSysNN_Assignment and wanting to experiment further with the lab. However, while re-watching Prof. Andrew Ng’s explanation on the tensorflow implementation of the model, I didn’t fully understand the mentioned function `linalg.l2_normalize`

.

In the video the professor mentioned that the function “normalizes the vector vu to have length one”. But when I check the documentation tf.math.l2_normalize | TensorFlow v1.15.0 it says the function returns " A `Tensor`

with the same shape as `x`

." Therefore, to my understanding, there is a difference in the return vector size based on these 2 sources.

I’m aware that the documentation is for `math.l2_normalize`

, not `linalg.l2_normalize`

, but I can’t find the official document for `linalg.l2_normalize`

(maybe because it’s for the older version of Tensorflow?) and I’m assumming they are quite similar.

So my question is why is the difference in the return vector length/size? And why should I use this function in the first place in my personal future projects?

Thank you!