NLP Specialization, C3 W1, Exercise 5

Hello all!

I’m having trouble with Exercise 5 in C3 W1. The instructions for the exercise state: " tl.Mean Calculates means across an axis. In this case, please choose axis = 1 to get an average embedding vector (an embedding vector that is an average of all words in the sentence)."

However, when I try to put axis = 1 into the tl.Mean(), I get the following error:

Any help would be appreciated! Thanks!

Create a mean layer, no need for parameters in it!

Thank you so much! That fixed the issue! Thank you for your service!