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
Read More:
- Solve the runtimeerror in RNN: expected scalar type long but found float error
- RuntimeError: expected scalar type Double but found Float
- [Solved] RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #2 ‘mat1‘
- RuntimeError: Found dtype Double but expected Float”
- Expected STR instance, float found
- Successfully solved the problem that visual studio code could not go to the definition, and there was no mouse prompt
- Error in machine learning training data (FIT): valuee rror:Unknown label type:‘continuous‘
- error Expected indentation of 2 spaces but found 8
- no target device found problem solved
- Successfully solved opencv error: assertion failed (SCN = = 3 | SCN = = 4) in CV:: cvtcolor
- Expected indentation of 6 spaces but found 10
- Successfully solved runtimeerror: CUDA runtime error (30)
- Python’s importerror: DLL load failed: the specified module was not found and the problem was solved
- Python: How to Fix “Ord() expected string of length 1, but int found”
- Type error: sequence item 0: expected STR instance, int found
- Zeppelin starts successfully, but an error is reported
- Zeppelin starts successfully, but an error is reported
- An error was reported on the command line of Vue when it first wrote a small project: expected indentation of 4 spaces but found 6
- Solving windows error: [error 87] classification: problem summary
- Can’t multiply sequence by non int of type ‘float’