Recently, I encountered some mistakes as shown in the title when doing deep learning classification, but I don’t know how to modify them. Finally, after exploration, I successfully solved them
the problems and solutions are reported directly below.
Error
Solution
In practice, the label of classification should be long, and the image should be float32
therefore, modifying the data type will succeed