C3W1_Assignment 5.exercise I need help

I could not solve the problem, is there anyone who can help me?
{CODE REMOVED BY MODERATOR}


I attached my codes, how can I solve this problem?

Hi @mehmetalpay

It’s against the rules to post your solution code (so please remove it). Take a look at this thread:

Hint: when you sum log_p and ‘non_pad’ - it should be summed over the last axis.

Cheers

1 Like