Last Lab Week 1 Course 2 Invalid Argument Error In[0] and in[1] has different dims

Exercise 2: Coded MyDense vectorized. All tests passed, but then get an error after Jupiter cell [23]. Please see attached pics of code and error

Errors.jpdf.pdf (744.6 KB)

Hi Larry,

Your my_dense(...) is almost perfect, but it is returning a Tensorflow Tensor which is not the requirement - it expects for an array. To do so, you only need to change a_out into a_out[:].

Cheers!
Raymond

P.S. we don’t encourage learners to share assignment code so I removed it. Next time you may post the error and we might ask you to share the code in Direct Message if needed.

Thank you very much Raymond. Going forward i will post only error messages.

Larry

You are welcome Larry!