Pie
1
Hello, I’m stuck with the first lines of code. I’m getting this:

AssertionError: Wrong value. Are you applying tf.reduce_sum to get the loss?

And yes I’m applying tf.reduce_sum and I’ve checked many times line by line and I just can’t understand my error, please help.

```
{moderator edit: code removed}
```

TMosh
2
Which week of the course?

Which assignment?

Pie
3
DLS Course 4

Face recognition, week 4, triplet_loss function.

Hello, How did you solve this? I seem to have the exact same problem! Someone, please help.

Please note that my loss value is tf.Tensor(707.7624, shape=(), dtype=float32)

Got it. Refer Course 4 Week 4 project 1 - #2 by dbiber

Need to specify the axis when we reduce_sum for distances.

OlaOyo
6
This is right. the error details axis=-1 missing from tf.reduce_sum