Target is out of bounds #803
-
I was following the tutorial on Convolutional Neural Networks and when I got to the point of running the train_step function i got this error: It is around this point in the main video: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Oh, I found the mistake. This is the incorrect code: This is the correction: |
Beta Was this translation helpful? Give feedback.
Oh, I found the mistake.
When I created an instance of the model I put the wrong number in the output_shape parameter.
This is the incorrect code:
model_2 = FashionMNISTModel_V2(input_shape=1,
hidden_units=10,
output_shape=1)
This is the correction:
model_2 = FashionMNISTModel_V2(input_shape=1,
hidden_units=10,
output_shape=len(class_names))