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)
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.
I got the same line and the same error as the original post. When I remove the tuple, I got the following error:
ValueError: The first argument to Layer.call
must always be passed.
I fixed the error. I should have removed not only the tuple but the paranthesis, leaving only the (x).