Skip to content
Advertisement

I created a CIFAR10 dataset learning model using a CNN model. Why is there an error?

I created a CIFAR10 dataset learning model using a CNN model. Why is there an error? How should I fix it? I did it in Google colab environment.

JavaScript

This error occurred to me

ValueError Traceback (most recent call last) in ()

JavaScript

/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/func_graph.py in wrapper(*args, **kwargs)

JavaScript

ValueError: in user code:

JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript

Thank you for your answering.

Advertisement

Answer

I think that your labels are integers not one-hot vectors and its shape is (None, 1).

Try:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement