W1 A3 djmodel

I’m having some trouble doing the djmodel exercise; i get the error:

InvalidArgumentError: Input to reshape is a tensor with 2 values, but the requested shape has 180 [Op:Reshape]
with this

    x = reshaper((1, n_values))(x)

The reshaper object already has the shape tuple specified here:

You don’t need to repeat that portion. In your code, delete the shape tuple, and just pass the (x) data.

1 Like